Q: 11
Given the code fragment: List empDetails = Arrays.asList(“100, Robin, HR”, “200, Mary, AdminServices”,“101, Peter, HR”); empDetails.stream() .filter(s-> s.contains(“r”)) .sorted() .forEach(System.out::println); //line n1 What is the result?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.