Answered step by step
Verified Expert Solution
Question
1 Approved Answer
public static String execute(ArrayList participants, int number) { return ; } Currently, it simply returns an empty string. It should however do the following: Return
public static String execute(ArrayList
return ;
}
Currently, it simply returns an empty string. It should however do the following:
Return a String that contains the name of each player (which meets the criteria noted below *) in the ArrayList participants in the format: "FIRSTNAME, surname", e.g. "JOE, bloggs", each followed by a new line. * only players whose gamertag contains their surname (regardless of case) as well as the int number passed as a parameter to the execute method.
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