Returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string.
Examples:
"unhappy".substring(2) returns "happy" "Harbison".substring(3) returns "bison" "emptiness".substring(9) returns "" (an empty string)
beginIndex | the beginning index, inclusive. |
IndexOutOfBoundsException | if
beginIndex is negative or larger than the
length of this String object. |
Diagram: String