public void print() { if (left != null) { left.print(); } Console.Write(number + "-"); if (right != null) { right.print(); } }
/** * Print all the values in the tree in order */ public void print() { root.print(); }