//: generics/ComparablePet.java public class ComparablePet implements Comparable { @Override public int compareTo(ComparablePet arg) { return 0; } } ///:~