charAt(int index)
returns char value at the specified index of string.
package lang; public class Lang { public static void main(String[] args) { String str = "test 1234"; char chr; chr = str.charAt(1); System.out.println(chr+" is the 2 char"); } }
e is the 2 char