jackblack369
1/27/2019 - 9:56 AM

[code-stream] #java

[code-stream] #java

//merge collection
List<String> resultPersonnos = Stream.of(list1, list2)
                .flatMap(Collection::stream)
                .distinct()
                .sorted()
                .collect(Collectors.toList());