Question: 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
Get step-by-step solutions from verified subject matter experts
