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?
Limited Time Offer
25%
Off
Currently there are no comments in this discussion, be the first to comment!
Currently there are no comments in this discussion, be the first to comment!