Unable to traverse a tree in java

Printable View