Java 8 menggabungkan beberapa koleksi menggunakan flatmap

Stream<String> combinedStream = Stream.of(collectionA, collectionB)
  .flatMap(Collection::stream);
Collection<String> collectionCombined = 
  combinedStream.collect(Collectors.toList());
Cooperative Coyote