Question: NameSurfer the driver class o The main method should read all the data from all the files in the names subfolder and store it in
NameSurfer the driver class o The main method should read all the data from all the files in the "names" subfolder and store it in two ArrayLists one for male names and one for female names of NameRecord objects. o It should then offer the following menu to the user: Find best year for a female name Find best rank for a female name Find worst year for a female name Find worst rank for a female name Find a female name's rank in a specified year Find best year for a male name Find best rank for a male name Find worst year for a male name Find worst rank for a male name Find a male name's rank in a specified year Quit Enter your selection. o If or is entered, the program should prompt the user for a name, search for that name in the ArrayList search should ignore case print the desired information, and display the menu again. If the name is not found in the ArrayList, print an error message, and display the menu again. o If or is entered, the program should prompt the user for a name and year, search for that name in the ArrayList search should ignore case print the desired information, and display the menu again. If the name is not found in the ArrayList, print an error message, and display the menu again.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
