The charAt() method returns the character at a specified index (position) in a string . The index of the first character is 0, the second 1, …
Read moreIs charAt in the string class?
The Java String class charAt() method returns a char value at the given index number . The index number starts from 0 and goes to n-1, where n is the length of the string. It returns StringIndexOutOfBoundsException, if the given index number is greater than or equal to this string length or a negative number.
Read more