Answers for "best way to combine multiple lists into single list in java"

0

java 8 collect multiple lists into single list

List<MyObject> list = services.stream()
                              .flatMap(s -> s.getObjects().stream())
                              .collect(Collectors.toList());
Posted by: Guest on March-27-2020

Code answers related to "best way to combine multiple lists into single list in java"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language