Many basic classes already implement the Comparable interface...for instance String, Integer, Float, Double, etc...in fact the link I provided to the API above lists all known implementing classes in...
Type: Posts; User: copeg
Many basic classes already implement the Comparable interface...for instance String, Integer, Float, Double, etc...in fact the link I provided to the API above lists all known implementing classes in...
See the API for Comparable: Comparable (Java Platform SE 6)
When implementing the Comparator interface, sometimes (but definitely not always) one uses the compareTo method of Comparable ( see...