Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For Java Eclipse. Phone Book ArrayList Write a class named PhoneBookEntry that has fields for a persons name and phone number. The class should have

For Java Eclipse.

Phone Book ArrayList

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

View required output

Test Case 1

Files in the same directory

phonebook.txt

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 First Name: Armen Last Name: Avetian Phone Number: 818.555.1237 First Name: Xin Last Name: Liu Phone Number: 818.555.1238 First Name: James Last Name: White Phone Number: 818.555.1239 First Name: Julie Last Name: McGuiness Phone Number: 818.555.1240 First Name: Juan Last Name: Ballardos Phone Number: 818.555.1241 First Name: Arthur Last Name: London Phone Number: 818.555.1242 First Name: Ashot Last Name: Aghajanian Phone Number: 818.555.1243 

Please help!

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

More Books

Students also viewed these Databases questions

Question

Why? What will be my payoff?

Answered: 1 week ago

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago