use Integer.compareTo instead of Integer.compare

* java 1.2 vs. java 1.7