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