public static int intCompareTo(Integer thisInt,Integer anotherInt){
  int thisVal=thisInt.intValue();
  int anotherVal=anotherInt.intValue();
  return (thisVal < anotherVal ? -1 : (thisVal == anotherVal ? 0 : 1));
}

public static int intCompareTo ( Integer thisInt , Integer anotherInt ) { int thisVal = thisInt . intValue ( ) ; int anotherVal = anotherInt . intValue ( ) ; return ( thisVal < anotherVal ? - 1 : ( thisVal == anotherVal ? 0 : 1 ) ) ; }
compares two integer objects numerically . this function is identical to the integer compareto method . the integer compareto method was added in java 1 . 2 , however , so any app that is 1 . 1 . 8 compatible must use this method .
