| CIT 594 Assignment
5: Tree API CIT 594, Spring 2005 |
sWrite a general-purpose API for trees.
obj
as its value.obj
as its value, and child as its single child.true if no node in this tree has more than two children.true if this tree node has no children.true if this tree node and the given parameter are
equal (equal values, equal subtrees in same order).null if this tree
node is the root.value.value.child as a new (last) child of this tree node.children, creates a new tree
node with that value and add it as a new child of this tree node.subtree as a child of this tree node, and returns
it (or returns null if subtree was not a child of this tree
node).Tuesday, February 22, before midnight. Note that the JUnit tests have been done for you, so this assignment should be significantly less work than usual.