Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java stream index

List<Person> people = MockData.getPeople(); 
IntStream.range(0, people.size())
            .forEach(index->{Person person=people.get(index);
              System.out.println(person);
            });
 
PREVIOUS NEXT
Tagged: #java #stream #index
ADD COMMENT
Topic
Name
9+6 =