java 8 merge multiple collections using flatmap

Solutions on MaxInterview for java 8 merge multiple collections using flatmap by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "java 8 merge multiple collections using flatmap"
Raylan
13 Jun 2016
1Stream<String> combinedStream = Stream.of(collectionA, collectionB)
2  .flatMap(Collection::stream);
3Collection<String> collectionCombined = 
4  combinedStream.collect(Collectors.toList());
similar questions