TreeNode ipl in java