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 and
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 and mutator methods. Then write a program that creates at least five PhoneBookEntry objects and stores them in an arraylist. Use a loop to display the components of each object in the arraylist.
Write a program called PhoneBookEntryDemo to demonstrate the PhoneBookEntry class. You are required to use ArrayList class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
