
Returns a new
CharSequence that is a subsequence of this sequence.
The subsequence starts with the
char value at the specified index and
ends with the
char value at index
end - 1. The length
(in
chars) of the
returned sequence is
end - start, so if
start == end then an empty sequence is returned.
Returns:
the specified subsequence
Parameters:
-
start - the start index, inclusive
-
end - the end index, exclusive
Throws:
-
IndexOutOfBoundsException - if
start or
end are negative,
if
end is greater than
length(),
or if
start is greater than
end