Stream<String> s1 = Stream.of("a1", "b1", "b2", "c1", "c2", "c3"); // s1.filter( x -> x.startsWith("c")).forEach(x -> System.out.print(x + " ")); Stream<String> s2 = s1.filter( x -> x.startsWith("c"));