Given:
public class Emp {
String fName;
String lName;
public Emp (String fn, String ln) {
fName = fn;
lName = ln;
}
public String getfName() { return fName; }
public String getlName() { return lName; }
}
and the code fragment:
List<Emp> emp = Arrays.asList (
new Emp ("John", "Smith"),
new Emp ("Peter", "Sam"),
new Emp ("Thomas", "Wale"));
emp.stream()
//line n1
.collect(Collectors.toList());
Which code fragment, when inserted at line n1, sorts the employees list in descending order of fName and then ascending order of lName?
pul26
Highly Voted 3 years, 7 months agochichikim
Highly Voted 2 years, 8 months agoasdfjhfgjuaDCV
Most Recent 4 months, 4 weeks agosteefaand
5 months, 4 weeks agor1muka5
1 year, 5 months agoOhayou
2 years, 4 months agoWilsonKKerll
2 years, 4 months agoThientvse
2 years, 5 months ago