Just a little for loop, where I wish to change a char to an int and then add 13 (ROT13 encoding). Though when I do this, I keep getting precision loss error.
for(int count=0;count<totalNum;count++) { int current1 = input1.charAt(count); int current2 = current1 + 13; encoded = encoded + current2; }
Hopefully itll just get every char from the input1 string, then get the ascii value of this char and add 13 to it and then add to the encoded string for display.