Skip to content

Commit 773347e

Browse files
committed
Update README.md.
1 parent 73874c8 commit 773347e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ var set = setOf("a", "b", "c");
10791079
System.out.println(set.contains("a")); // true
10801080
```
10811081

1082-
The `indexWhere()` and `lastIndexWhere()` methods can be used to find the index of either the first or last list element that matches a given predicate:
1082+
`Collections` also provides the `indexWhere()` and `lastIndexWhere()` methods, which can be used to find the index of either the first or last list element that matches a given predicate:
10831083

10841084
```java
10851085
public static <E> int indexWhere(List<E> list, Predicate<? super E> predicate) { ... }

0 commit comments

Comments
 (0)