最好能给详细的代码

解决方案 »

  1.   

    public BinaryTree(BinaryTree leftChild,BinaryTree rightChild, Object value){
        this.leftChild = leftChild;
        this.rightChild = rightChild;
        this.value = value;
    }构造方法
      

  2.   

    BinaryTree leftChild,BinaryTree rightChild, Object value
    带颜色的是什么类型啊?我看不明白啊?能解释一下嘛?
      

  3.   

    main 函数呢?这怎么运行啊?一般左右孩子都有好几个字符的啊?