same tree of java