public CharSequence subSequence (int beginIndex, int endIndex)

Implementing: java.lang.CharSequence

Returns a new character sequence that is a subsequence of this sequence.

An invocation of this method of the form

 str.subSequence(begin, end)
behaves in exactly the same way as the invocation
 str.substring(begin, end)
This method is defined so that the String class can implement the CharSequence interface.

beginIndex    the begin index, inclusive.
endIndex    the end index, exclusive.

Returns:  the specified subsequence.

Since:  1.4

@spec JSR-51