Retrieves the character at the index specified.
Syntax
Parameters
returns
returns the character in the position specified by the parameter index. The index of the first character in a string is 0. If index is not a number from 0 to string.length - 1 , an empty string is returned.
Example
s = new String("Hello World");
s.charAt(2); //returns "l"