Question: 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
Get step-by-step solutions from verified subject matter experts
