Contents    Page-10    Prev    Next    Page+10    Index   

Binary Tree


public class Tree {
    private String contents;
    private Tree left, right;
    public Tree(String stuff, Tree lhs, Tree rhs)
      { contents = stuff;
        left = lhs;
        right = rhs; }
    public String str() { return contents; }