My AVL tree code is have an error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

25th Oct 2021, 3:47 PM
RazanAbuawf
RazanAbuawf - avatar
1 Answer
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
25th Oct 2021, 4:37 PM
zemiak