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 participants, int number) {

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

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!