root tree java

Solutions on MaxInterview for root tree java by the best coders in the world

showing results for - "root tree java"
Ella
29 Jan 2020
1public Position<E> root() throws RuntimeException {
2       if (root == null){
3           throw new RuntimeException("The tree is empty");
4       }
5       return root;
6}