// Use a custom comparator. import java.util.*; // A reverse comparator for strings. class MyComp implements Comparator { public int compare(String a, String b) { String aStr, bStr; aStr = a; bStr = b; // Reverse the comparison. return bStr.compareTo(aStr); } // No need to override equals. } class CompDemo { public static void main(String args[]) { // Create a tree ...