public class TestProg { public static void main(String[] args) { RBTree T = new RBTree(new KeyComp()); T.insert(new KeyType("ABC"), new ValueType(2)); T.printTree(); System.out.println("============================="); T.insert(new KeyType("DEF"), new ValueType(12)); T.printTree(); System.out.println("============================="); T.insert(new KeyType("GIJ"), new ValueType(12)); T.printTree(); System.out.println("============================="); T.insert(new KeyType("HIJ"), new ValueType(12)); T.printTree(); System.out.println("============================="); T.insert(new KeyType("KLM"), new ValueType(12)); T.printTree(); System.out.println("============================="); T.insert(new KeyType("XYZ"), new ValueType(12)); T.printTree(); } }