com.futureshocked.datastructures
Class BinaryTree2
java.lang.Object
com.futureshocked.datastructures.BinaryTree2
public class BinaryTree2
- extends java.lang.Object
Just a test class for the all the dynamic bytecode manipulation classes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
private BinaryNode root
BinaryTree2
public BinaryTree2()
BinaryTree2
public BinaryTree2(BinaryNode root)
getRoot
public BinaryNode getRoot()
insert
public void insert(int value)
insert
public void insert(BinaryNode node)
insert
private BinaryNode insert(BinaryNode curNode,
BinaryNode newNode)
search
public BinaryNode search(int number)
search
private BinaryNode search(BinaryNode curNode,
int number)
printTree
public void printTree()
printTree
private void printTree(BinaryNode node,
int depth)
main
public static void main(java.lang.String[] args)