News

If you want to take advantage of sorting methods in Java, you'll need to implement the Comparable interface.
Just implement your sorting algorithm, casting the objects to Comparable and invoking the .compareTo method to compare them.<BR><BR>If you are given a Comparator object, you will use this to ...