public void PrintInOrder() { if (root != null) { root.InOrder(); } Console.WriteLine(); }
internal void InOrder() { if (left != null) { left.InOrder(); } Print(); if (right != null) { right.InOrder(); } }
public void InOrder() { if (left != null) { left.InOrder(); } Console.Write(this.val + " "); if (right != null) { right.InOrder(); } }