Question 104 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question 104 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question

Given the code fragment:

Stream<List<String>> strs = Stream.of(
Arrays.asList ("texti", "text2"),
Arrays.asList ("text2", "text3"));

Stream<String> bs2 = strs
-filter(b -> b.contains ("text1"))
-flatMap(rs -> rs.stream());

bs2.forEach(b -> System.out.print (b))+

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.