I\'m trying to implement a sorted list as a simple exercise in Java. To make it generic I have an add(Comparable obj) so I can use it with any class that implements
add(Comparable obj)
You need to "check" or define the Comparable object like so: