java tree Archives - Coddicted

Implementing a Generic Binary Tree in Java

Implementing a Generic Binary Tree in Java
The following two classes demonstrate an implementation of the Generic Binary Tree data structure. The first class is BinaryTreeNode.java which acts as the node class for the tree, holding integer type data and two pointers for left and right child respectively of type same as the node class itself. The member fields are declared to ...