String s = "1234";
for(int i=0;i<s.length();i++)
{
System.out.println(s.charAt(i));
System.out.println(s.charAt(i)-1);
}
In the above line of code , for the first iteration, i.e., when i=0, first line should print 1 and second one should print 0 but the second one is printing 48. Why is it so?