java tutorial - Java Stings subSequence() method - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - Java strings subsequence - Java examples - Java programs
Description
The subSequence () method — returns a new sequence of characters, which is a subsequence of this sequence, in other words, returns a sequence of characters from the string starting and ending with the specified indexes.
Syntax
Syntax method:
Options
Detailed information about the parameters:
- beginIndex - initial index, inclusive;
- endIndex - end index, not including.
Return value
- In Java, subSequence () returns the specified subsequence.