Question
Q3) The squads you made in the previous part should have 26 players in each. Now you want to pick a team to play in
Q3)
The squads you made in the previous part should have 26 players in each.
Now you want to pick a team to play in a match.
i)Complete the static method getTeam in the Main class.
ii) It should return a team that has 11 players matching the managers preferred formation which is 4-4-2.
Hint:
The formation is organised so the first digit is for defenders, the second for midfielders and the final digit for forwards. The goalie is not included but you must have one in your team.
iii) Pick the best players for your team.
iv) Rank the players using an instance of the Comparator interface to organise your squads players.
iiv) Combine all the players attributes and average them to find the best players.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started