StringBuffer.charAt
Class Overview | Class Members |
This Package |
All Packages
public synchronized char charAt( int index )
Parameters
- index
- the index of the desired character.
Returns
the character at the specified index of this string buffer.
Description
Returns the character at a specific index in this string buffer.
The first character of a string buffer is at index
0, the next at index 1, and so on, for
array indexing.
The index argument must be greater than or equal to
0, and less than the length of this string buffer.
Exceptions
StringIndexOutOfBoundsException
if the index is invalid.
See Also
length