Parse Tree-format with Java