public static boolean isGreaterThan(String a, String b) { return a.compareTo(b) > 0; // <-- не могу понять для чего тут это >0 }