Chapter 7 PC 17 Phone Book Array List Write a class named Ph
Chapter 7, PC 17
Phone Book Array List
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.
Solution
OUTPUT
Name is Jack Jones
Number is 1234567
Name is Jill Winslet
Number is 7654321
Name is Hans Holding
Number is 2345443
Name is John Moss
Number is 8649363
Name is Kirsten Prinsloo
Number is 3453244
