0

What is substring in java ?!

18th Mar 2020, 5:33 AM
yash vardhan singh
yash vardhan singh - avatar
2 Answers
+ 1
The substring(int beginIndex, int endIndex) method of the String class. It returns a new string that is a substring of this string. The substring begins at the specified beginIndex and extends to the character at index endIndex - 1. Thus the length of the substring is endIndex-beginIndex. It's very handy on some of the situation...
18th Mar 2020, 5:38 AM
🩋FEATHER🩋
🩋FEATHER🩋 - avatar