Indeks strumienia Java
List<Person> people = MockData.getPeople();
IntStream.range(0, people.size())
.forEach(index->{Person person=people.get(index);
System.out.println(person);
});
Serhat Ture