Possible Duplicate:
Can I multiply charAt in Java?
When I compile this :
String s = "25999993654";
System.out.println(s.charAt(0)+s.charAt(1));
I received 100
JAVA documenation :
the character at the specified index of this string. The first character is at index 0.
I think that I must compile string to int , but I think that it is unnesassary job . Any solutions or idea ?
try this,