Note that both PhoneEntry.java and PhoneBook.java are marked as Serializable; no other work was done to these two classes to make them work with serialization.
javac Phones.java
Run the solution by typing
java Phones add zoe 555-9876
or the like.
For example (where % marks lines entered by the user):
ls phone-book.dat
/bin/ls: phone-book.dat: No such file or directory
% java Phones add zoe 555-9876
% java Phones get zoe
Phone # for zoe: 555-9876
% java Phones get rich
No phone entry for rich
% java Phones add zoe 555-6789
% java Phones get zoe
Phone # for zoe: 555-6789