Question: JAVA - Address Book Managing data is an important aspect of programming. For this assignment we will use a collections data structure to emulate persistent

JAVA - Address Book

Managing data is an important aspect of programming. For this assignment we will use a collections data structure to emulate persistent storage and data management. Consider the example of a simple address book with a name and phone number.

CONSOLE

JAVA - Address Book Managing data is an important aspect of programming.

Operation

? If the user selects the first menu option, the application displays the names and phone numbers that have been saved. Then, it displays the menu again.

? If the user selects the second menu option, the application prompts the user to enter a name and phone number. Then, it displays the menu again.

? If the user selects the third menu option, the application exits.

Specifications

? Create static methods that can be used to validate the data in this application. The user should only be able to select one of the menu choices, and the user must enter some text for name and phone number.

? Create static methods that display the menu and the output to the user.

? Create other methods as needed to solve the problem.

? You can use any collection data structure. Make sure when you display the phone book you sort the output by name!

1 - List entries 2 - Add entry 3-Exit Enter menu number 1 Name Phone Bill Gates Larry Ellison Steve Jobs (111) 222-3333 (444) 555-6666 777-888-9999 1 - List entries 2 - Add entry 3 - Exit Enter menu number 2 Enter name: Mike Murach Enter phone numbe 800-221-5528 This entry has been saved 1 - List entries 2 - Add entry 3 - Exit Enter menu number 1 Name Phone Bill Gates Larry Ellison Steve Jobs Mike Murach (111) 222-3333 (444) 555-6666 777-888-9999 800-221-5528 1 - List entries 2 - Add entry 3-Exit Enter menu number: 3 Goodbye

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!