Returns the character (Unicode code point) at the specified
index. The index refers to char values
(Unicode code units) and ranges from 0 to
length() - 1.
If the char value specified at the given index
is in the high-surrogate range, the following index is less
than the length of this String, and the
char value at the following index is in the
low-surrogate range, then the supplementary code point
corresponding to this surrogate pair is returned. Otherwise,
the char value at the given index is returned.
index | the index to the char values |
index
IndexOutOfBoundsException | if the index
argument is negative or not less than the length of this
string. |
Diagram: String