Review Comment

This commit is contained in:
Niket Agrawal 2023-12-14 19:53:46 +05:30
parent 7b83abb7ae
commit 6948bc37e2
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class FirstMatchingElementUnitTest {
@Test
public void whenUsingIntStream_thenFindFirstMatchingUserIndex() {
int index = IntStream.range(0, userList.size() - 1)
int index = IntStream.range(0, userList.size())
.filter(streamIndex -> searchName.equals(userList.get(streamIndex).getUserName()))
.findFirst()
.orElse(-1);