APL/DEV 3.2/TP07/Prefixe/Tree.java
2022-11-24 15:17:33 +01:00

20 lines
341 B
Java

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