java 8 collect multiple lists into single list

Java
List<MyObject> list = services.stream()
                              .flatMap(s -> s.getObjects().stream())
                              .collect(Collectors.toList());
Source

Also in Java: