Challenge for Programming with the Java Collection Framework
compareTo in the
Date class below so that it successfully implements the interface
Comparable<Date>. The ordering on objects of type
Date should be the natural, chronological ordering.
The boilerplate code will scan in the input to create Dates, and then sort them based on your
compareTo implementation, and print them based on the included
Alternatively, you can try out Learneroo before signing up.