Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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. Please make it where the user inputs the name and phone number's for the array. Thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started