charAt(..) method is used to return us the character of a String if we supply it with index value.
Say, if we want to know which character is present at 4th index of the String "Hello".
public class Test{ public static void main(String[] arg){ String firstString = "Hello"; char pos = firstString.charAt(3); System.out.println("The character is : "+pos); } }