Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java 8 iterating and manipulating list

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

 personList.addAll(newList);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #iterating #manipulating #list
ADD COMMENT
Topic
Name
7+3 =