Question: 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
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 contents of each object in the ArrayList.
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
public class PhoneBookEntry private String name private String phoneNumber p... View full answer
Get step-by-step solutions from verified subject matter experts
