previous
|
start
|
next
The
Comparator
interface type
Ch4/sort2/CountryComparatorByName.java
Ch4/sort2/ComparatorTester.java
Comparator object is a
function object
This particular comparator object has no state
State can be useful, e.g. flag to sort in ascending or descending order
previous
|
start
|
next