TeachJava! |
In Java,
we can represent each entry as an Entry
object
consisting of three fields (name, address, phone
)
and the operations to access those three fields.
Let's summarize the form of an Entry as a table:
Fields:
String name;
String address;
String phone;
Methods:
String getName();
String getAddress();
String getPhone();
e.getName()
instead of (getName e)
All files are available at teachjava.org/code/
! == && ||
Do Finger Exercises 1.3.2.1, 1.3.2.2, 1.3.2.3., 1.3.3.1, 1.3.3.2, 1.3.3.3
Do the finger exercises in Section 1.7 of the class notes.