java 8 iterating and manipulating list

Java
childrenList.stream()
            .map(this::convertChildToPerson)
            .forEachOrdered(personList::add); List<Person> newList = childrenList.stream()
             .map(this::convertChildToPerson)
             .collect(Collectors.toList());

 personList.addAll(newList);
Source

Also in Java: