Details
-
Sub-task
-
Resolution: Withdrawn
-
P4
-
21
Description
A new method `indexOf(String str, int beginIndex, int endIndex)` method is added to `java.lang.String` to support a forward search of `String` `str`, and limited to the specified range of indices.
Besides full control on the range, it is safer to use than `indexOf(String str, int fromIndex)` because it throws an exception on illegal search ranges.
Besides full control on the range, it is safer to use than `indexOf(String str, int fromIndex)` because it throws an exception on illegal search ranges.