Since Java 8, comparators can be defined very elegantly, as for example in students.sort(Comparator.comparing(Student::getLastName). Sign up for Infrastructure as a Newsletter. But maybe A and B should implement the same Identifiable interface, and the list should be a List
Valentino Santos Mother,
Where Are Kanga Coolers Made,
Articles H