public static Comparator stringComparator() { return new Comparator() { public int compare(java.lang.Object o1, java.lang.Object o2) { String s1 = ((String) o1).toLowerCase(); String s2 = ((String) o2).toLowerCase();
public static Comparator<String> stringComparator() { return new Comparator<String>() { public int compare(String s1, String s2) {
    public static Comparator stringComparator() {        return new Comparator() {            public int compare(java.lang.Object o1, java.lang.Object o2) {                String s1 = ((String) o1).toLowerCase();                String s2 = ((String) o2).toLowerCase();                return s1.compareTo(s2);            }        };    }