Answers for "Java 8 merge multiple collections using flatmap"

0

Java 8 merge multiple collections using flatmap

Stream<String> combinedStream = Stream.of(collectionA, collectionB)
  .flatMap(Collection::stream);
Collection<String> collectionCombined = 
  combinedStream.collect(Collectors.toList());
Posted by: Guest on August-31-2021

Code answers related to "Java 8 merge multiple collections using flatmap"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language