Answers for "sort a list in java according to last name"

0

sort a list in java according to last name

//sort by a single field
    Collections.sort(list, (o1,o2) ->  o1.getfName().compareTo(o2.getfName()));
Posted by: Guest on May-26-2021

Code answers related to "sort a list in java according to last name"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language