I'm trying to learn how to use the Comparable interface for
Java 5.0+. In the Java 5.0 API, when I implement the Comparable interface in the code below, I get a warning that says that Comparable is "unchecked".
Will somebody explain to me why Comparable has a generic type and how to implement the Comparable interface in Java 5.0 and up.