Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 7. PC #17. Phone Book ArrayList Write a (JAVA) class named PhoneBookEntry that has fields for a persons name and phone number. The class

Chapter 7. PC #17. Phone Book ArrayList

Write a (JAVA) 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 at least five PhoneBookEntry objects and stores them in an ArrayList. Use a loop to display the contents of each object in the ArrayList.

Required Output

First Name: John Last Name: Smith Phone Number: 818.555.1234 First Name: Jane Last Name: Brown Phone Number: 818.555.1235 First Name: Jose Last Name: Vargas Phone Number: 818.555.1236 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions