public void InOrderTraversal() { if (root != null) { root.InOrderTaversal(); } }
public void InOrderTaversal() { if (leftNode != null) { leftNode.InOrderTaversal(); } // Printing root node Console.Write(data + " "); if (rightNode != null) { rightNode.InOrderTaversal(); } }