Study project about tree (Java)