índice de flujo de java
List<Person> people = MockData.getPeople();
IntStream.range(0, people.size())
.forEach(index->{Person person=people.get(index);
System.out.println(person);
});
Serhat Ture