public static int compareToInteger(Integer var1,Integer var2){ return var1.compareTo(var2); }小于0,小于;大于0,大于。