Closed stewemetal closed 4 years ago
String example = "example"; example.substring(0, example.length);
This will return the same string, "example", as String.substring takes it's second parameter as non-inclusive, and String.length as an index means (max index + 1).
String.substring
String.length
Exactly the reason why I am working on testing right now. Thanks, I will merge and release as soon as I can.
This will return the same string, "example", as
String.substring
takes it's second parameter as non-inclusive, andString.length
as an index means (max index + 1).