Need Help Java Program Using Binary Search Tree Search Csv Pokemon Puts Alphabetical Order Q37083116

Need help on JAVA program. I am using a binary search tree tosearch a csv of Pokemon and it puts them in alphabetical order andI find the Pokemon by name then shows the found Pokemon and alsodisplays the number of comparisons made in the search tree. CodeI’ve completed is below with sample output. Some of the code couldbe correct and my CompareTo method is wrong in my Pokemon class,I’;m just not sure thanks.

///////////////////////////////////////////////

class PokemonBST {

int comparisonCount = 0;

/* Class containing left and right child of current node and keyvalue*/

// Basic changes already made, so the original code that onlyworks with

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.