public class TestProg2 { public static void main(String[] args) { AVLTree T = new AVLTree(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("EEE"), new ValueType(44)); T.printTree(); System.out.println("============================="); T.insert(new KeyType("EAA"), new ValueType(12)); T.printTree(); } }