To pile a bit more onto the plate, you could implement the Comparable or Comparator interface and perform your comparisons there. Doing so would allow you quite a bit more adaptability in that you...