Hey all,
My instructor is having us implement an AVL tree in
Java, without using any of the predefined AVL classes. Right now i'm working on the basics of the program (Insert, and Print inorder.) Both of those functions i have implemented in the "BinaryNode" class. Something isnt working when I go to print them out, i'm not sure if it is finding leaf nodes or overwriting existing ones. And when it prints, it only prints out one value. Is there something going on with the scope of the Node objects when I use recursive calls? Here is the code for AVLTree class and BinaryNode class:
Thanks everyone!!