The method is passed a list of comma separated last names


Problem: You are to write a single method: public static boolean contains (String lastNaneList. String searchForMe)

The method is passed a list of comma separated last names (lastNamelList) as well as a name for which this list should be searched (searchForMe).

The method returns trim starch For Me is one of the last names in the list and false if it is not. The search is case sensitive.

Each name in lastMameLost is followed by a comma except for the final name in the list which is not followed by a comma. Here is an example:

Bursiit.Meyer, Steinnan, Bach each, Marple The method should he called from the main method and its return value displayed on the monitor.

Test thoroughly Your program must comply with the requirements of the Style Guide but you need not follow the documentation requirement.

Just make sure your full name, section number, date, and a brief description of what the program does are in comments at the beginning of the program (class).

What You Must Turn In You must turn in a paper listing of your program.

If the program contains multiple pages, the pages must be stapled together.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: The method is passed a list of comma separated last names
Reference No:- TGS02899650

Expected delivery within 24 Hours