public void Inorder() // Instance calls the methods within the node class above { if (root != null) { root.Inorder(); } }
public void Inorder() { if (left != null) { left.Inorder(); } WriteLine(data); if (right != null) { right.Inorder(); } }