Site Search:

BTree.java



public class BTree {
    BTree left;
    BTree right;
    int value;
    
    public BTree(int value, BTree left, BTree right) {
        this.left = left;
        this.right = right;
        this.value = value;
    }
    
    @Override
    public String toString() {
        return this.value + "";
    }
}