Q: 4
Given the code fragment:
List nL = Arrays.asList(“Jim”, “John”, “Jeff”);
Function funVal = s -> “Hello : “.contact(s);
nL.Stream()
.map(funVal)
.peek(System.out::print);
What is the result?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.