build simple java trees