i. Extra credit posted
i. Note: not –1,0,1. Can be any negative or positive values
ii. Make sure to check vs zero, not just check
==-1 or 1
public interface Comparable<t>{
int compareTo(T other) ;
}
i. Just like ArrayList
implements Comparable<ClassType>
public int compareTo(<ClassType> other){
if (a) {return –1}…}