TestBinaryyTree测试类:
public class TestBinaryTree {
@SuppressWarnings("resource")
public static void main(String[] args) {
BinaryTree t = new BinaryTree();
Scanner input = new Scanner(System.in);
while(true) {
System.out.print("请输入二叉树节点值:");
t.add(input.nextInt());
System.out.print("先序遍历结果:");
t.rootFind(t.getChildRoot());
System.out.println();
System.out.print