Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a java program called AddressBook which allows the user to enter names, phone Numbers and email address and saves them into a text file

image text in transcribed

Write a java program called AddressBook which allows the user to enter names, phone Numbers and email address and saves them into a text file called addresses.txt. Then have the user enter the last name and have the program read back that person's contact info. Exception handling should be used to display an error message if the program is unable to open the file or the person being searched for does not exist. You may use the code examples on pages 622-623 for a similar example to how your program should be written. For example: Welcome to Address Book! Enter last name, first name, phone number, and email address Enter EOF to end input Doe John 555-123-4567 idoe@gmail.com Sheehan John 845-688-6017 sheehanj@sunyulster.edu EOF Enter last name to search: Doe Record Found: John Doe 555-123-4567

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

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions