/** Prints the tree in order from left to right. */ public void inOrderPrint() { if (left != null) { left.inOrderPrint(); } // end left System.out.println(data); if (right != null) { right.inOrderPrint(); } // end right } // end inOrderPrint