java tutorial - Java Strings substring() method - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - Java strings substring - Java examples - Java programs
Description
The substring () method in Java has two options and returns a new string, which is a substring of this string. The substring starts with the character specified by the index, and continues to the end of this line or to endIndex-1, if a second argument is entered.
Syntax
Syntax method:
Options
Detailed information about the parameters:
- beginIndex - initial index, inclusive;
- endIndex - end index, not including.
Return value
- A Java substring() the return value is specified by a substring.