My Java practice for Trees