java 8 collect multiple lists into single list code example
Example: java 8 collect multiple lists into single list
List<MyObject> list = services.stream()
.flatMap(s -> s.getObjects().stream())
.collect(Collectors.toList());