how to get the childs of a tree java code example
Example: root tree java
public Position<E> root() throws RuntimeException {
if (root == null){
throw new RuntimeException("The tree is empty");
}
return root;
}
public Position<E> root() throws RuntimeException {
if (root == null){
throw new RuntimeException("The tree is empty");
}
return root;
}