Create treeNext.java