Question: For java Using the built in binary seach function in java Create a Binary Search Tree of college football players. The key for each player

For java

Using the built in binary seach function in java

Create a Binary Search Tree of college football players. The key for each player in the tree will be their national rank (you can make up random numbers for their rank).

The stats you'll need to store for each player are the following:

1) Name

2) Height

3) Weight

4) 40 yard dash time

Create a "Player.java" class to hold each player's info. Make up several players with different stats and national ranks. Add them in random order to your BST (Use the built-in java "TreeMap" class for your BST).

You can add them in your code directly you don't have to prompt the user for input. Print out all the players in the entire tree in ascending order of national rank.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!