Update tree.java