public class Tree { private Node rootNode; public Tree() { rootNode = new Node(null); } public void setRootNode(Node rootNode) { this.rootNode = rootNode; } public Node getRootNode() { return rootNode; } public void showTree() { rootNode.showNode(0); } }