Tag: compare
-
The Comparator interface
In the previous post about the Comparable interface I explained how you can extend a class of objects that implement the Comparable interface and then order them in a list according to the logic defined in the overridden method compareTo. If you want to be able to sort the list according to a number of…