public class Driver { public static void main(String [] args) { Tree t = new Tree(); int [] input = { 4, 3, 2, 1 }; for (int i = 0; i < input.length; ++i) { t.add(new Node(input[i])); } System.out.printf("Here is tree (verbose):\n%s\n", t.toStringVerbose()); System.out.printf("A little prettier format:\n%s\n", t.toString()); //System.out.printf("The height is %d\n", t.findTreeHeight()); // We're not testing removals. } }