-
Type:
Sub-task
-
Resolution: Withdrawn
-
Priority:
P4
-
Affects Version/s: 21
-
Component/s: core-libs
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.