Hey everyone,
I am trying to convert the members of a string into their integer values, but not ASCII values. For instance, if I have the string "12", I want the following portion of the code to spit out 3, but instead it spits out (49+50=99) for the ASCII values. Any help would be awesome! Thanks!
if(Character.isDigit(s.charAt(j)))
{
x=(int)s.charAt(j);
j++;
y=(int)s.charAt(j);
z= x + y;
System.out.print(z);
}