% java usePhoneList
Enter option:
A - Add a phone number
L - Look up a phone number
C - Change a phone number
S - Save Phone List to a file
Q - Quit and save list
CMD> a
Enter name: Amanda Deleon
Enter telephone number: (352) 452-9098
CMD> a
Enter name: Scott Smith
Enter telephone number: (213) 897-0923
CMD> a
Enter name: Prof. Curious
Enter telephone number: (310) 243-3398
CMD> s
CMD> q
% cat MaBell.dat
Prof. Curious
(310) 243-3398
0
Scott Smith
(213) 897-0923
0
Amanda Deleon
(352) 452-9098
0
% java usePhoneList
Enter option:
A - Add a phone number
L - Look up a phone number
C - Change a phone number
S - Save Phone List to a file
Q - Quit and save list
CMD> l
Enter name: Scott Smith
Scott Smith (213) 897-0923
CMD> c
Enter name: Scott Smith
Enter new number: (323) 897-0923
CMD> l
Enter name: scott smith
Scott Smith (323) 897-0923
CMD> s
CMD> q
% cat mabell.dat
Scott Smith
(323) 897-0923
0
Prof. Curious
(310) 243-3398
0
Amanda Deleon
(352) 452-9098
0
% java usePhoneList
Enter option:
A - Add a phone number
L - Look up a phone number
C - Change a phone number
S - Save Phone List to a file
Q - Quit and save list
CMD> l
Enter name: amanda
AMANDA not found in the directory.
CMD> l
Enter name: amanda deleon
Amanda Deleon (352) 452-9098
CMD> s
CMD> q
% cat mabell.dat
Scott Smith
(323) 897-0923
0
Prof. Curious
(310) 243-3398
0
Amanda Deleon
(352) 452-9098