Question: Write a class named PhoneBookEntry that has fields for a person s name and phone number. The class should have a constructor and appropriate accessor

Write a class named PhoneBookEntry that has fields for a persons name and phone number. The class should have a constructor and appropriate accessor and mutator methods. Then write a program that creates three PhoneBookEntry objects and stores them in an ArrayList. Use a loop to display the contents of each object in the ArrayList. (You must use an ArrayList class to complete this program. See section 7.13). Once you are done displaying the contents of each object, ask the user to enter a phone number to be removed. If the phone number belongs to an object in the ArrayList, remove that object. Then display the contents of each object again as shown in the screenshots.
 Write a class named PhoneBookEntry that has fields for a persons

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!