char charAt(int index) Returns the indexed character of a string, where the index of the initial character is 0. : String class « Utility Classes « SCJP
8.7.11.char charAt(int index) Returns the indexed character of a string, where the index of the initial character is 0.
public class MainClass { public static void main(String[] argv) {
String s = "test";
System.out.println(s.charAt(0));
System.out.println(s.charAt(1));
}
}