// Allison Obourn // CSE 143 - lecture 19 // Creates a tree of integer and prints its elements in different orders. public class IntTreeClient { public static void main(String[] args) { IntTreeNode root = new IntTreeNode(42); root.left = new IntTreeNode(59); root.right = new IntTreeNode(27); root.right.right = new IntTreeNode(86); IntTree tree = new IntTree(root); // Trace in jGRASP debugger. System.out.print("Preorder: "); tree.printPreorder(); System.out.println(); System.out.print("Inorder: "); tree.printInorder(); System.out.println(); System.out.print("Postorder: "); tree.printPostorder(); System.out.println(); } }