0
My AVL tree code is have an error
Hello, I write a program that will allow the user to put an elements inorder into an AVL tree, but after I made a class called AVLTree I tried to make an object for it in the main class put it keeps giving me an error in the object, could anyone help me to solve this error please? thank you, and I hope you understand my problem I'm not that good in English. https://code.sololearn.com/c6OkbqdsI5W9/?ref=app
1 Antwort
0
because AVLTree is inside AVLtree_Razan (as inner class) it needs different declaration way
//AVLTree avlt = new AVLTree();
AVLTree avlt = new AVLtree_Razan(). new AVLTree();
note: to run in sololearn comment package line