Question: In Java Create 3 classes: app, teams and players. The app should use the team classes and the team classes are in arrays. App needs

In Java Create 3 classes: app, teams and players. The app should use the team classes and the team classes are in arrays. App needs to create 5 teams in total in an array list, and 5 players in each team in an array list. (array in an array) Player class needs to have 5 attributes: name, age, salary, height and weight and a method that will return this information about the player. Team class needs to have a name, location, a variable for total sum of all 5 players' under a team added up and is constantly updated whenever a player is added or removed). Team class also needs a method to display all the info about a team. The app will has the following: a menu system using while(true) and if statements:

Menu looks like this:

1. Create team.

2. Sign a player to a team.

3. Release a player from a team.

4. List teams and their total sum of salary of players.

5. Select a team and list players from the team.

6. Select a team and list players, select a player and list stats of certain player.

7. Trade a player from a team to another.

8. Sort method to re-rank team according to particular stat.

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!