Question : java 8 collect multiple lists into single list
Answered by : 2-programmers-1-bug
List<MyObject> list = services.stream() .flatMap(s -> s.getObjects().stream()) .collect(Collectors.toList());
Source : https://stackoverflow.com/questions/37652194/how-to-collect-multiple-lists-to-one-list-with-java-streams | Last Update : Fri, 03 Apr 20