Question: Solve this question using java programming language: PhoneDirectory A PhoneDirectory holds a list of names and associated phone numbers. Write a phone directory PhoneDirectory class

Solve this question using java programming language:

PhoneDirectory A PhoneDirectory holds a list of names and associated phone numbers. Write a phone directory PhoneDirectory class that keeps its list of names and phone numbers. The class should contain methods for Look up the phone number of a particular name, adding, deleting, and updating entries in the directory.

Write a test program that creates a PhoneDirectory object and displayed the following menu of options:

1)Look up a phone number

2) Add an entry to the directory

3) Delete an entry from the directory

4) Change someone's phone number

5) Exit from this program

The user is asked to select one of the options by typing in its number, then the program should properly process the users request by calling the proper method of PhoneDirectory.

Main purpose: Learn how to use basics of Java Collections Framework.

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!