Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Application that uses a class to store and display contact information. Console Welcome to the Contact List application Enter first name: Mike Enter last name:Murach

Application that uses a class to store and display contact information.

Console

Welcome to the Contact List application

Enter first name: Mike

Enter last name:Murach

Enter e..e@murach. com

Enter phone:800-221-5528

--------------------------------------------

---- Current Contact -----------------------

--------------------------------------------

Name:Mike Murach

Email A..e@murach. com

Phone Number:800-221-5528

--------------------------------------------

Continue? (y/n): n

Specifications

Use a class named Contact to store the data for each contact. This class should include these methods:

public void setFirstName(String name)

public String getFirstName()

public void setLastName(String name)

public String getLastName()

public void setEmail(String email)

public String getEmail()

public void setPhone(String phone)

public String getPhone()

public String displayContact()

Use the Console class presented in chapter 7 or an enhanced version of it to get and validate the user's entries.

The application should continue only if the user enters "y" or "Y" to continue.

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Programming questions