String.charAt

String.charAt

Class Overview | Class Members | This Package | All Packages

Syntax
public char charAt( int index )
Parameters
index
the index of the character.
Returns
the character at the specified index of this string. The first character is at index 0.
Description
Returns the character at the specified index. An index ranges from 0 to length() - 1.

Exceptions
StringIndexOutOfBoundsException if the index is out of range.