Package | Description |
---|---|
edu.govschool.midterm.problem2 |
Modifier and Type | Method and Description |
---|---|
Node |
Node.getLeft()
Get the left child of the
Node . |
Node |
Node.getRight()
Get the right child of the
Node . |
Node |
Tree.getRoot()
Returns the root of the
Tree . |
Modifier and Type | Method and Description |
---|---|
void |
Node.setLeft(Node left)
Set the left child of the
Node . |
void |
Node.setRight(Node right)
Set the right child of the
Node . |
Constructor and Description |
---|
Node(int data,
Node left,
Node right)
Default constructor.
|
Tree(Node root)
Default constructor.
|