Finger Exercise
¥In DrJava, open the file DeptDirectory.java from the code library at the TeachJava website.  Compile it.
¥In the Interactions pane, evaluate:

e1 = new Entry("Corky","DH3104","x 6042");
e2 = new Entry("Matthias","DH3106","x 5732");
d  = new Cons(e1, new Cons(e2, new Empty()));
d
d.getRest()
e = (Cons) d.getRest()
¥e.getRest()
¥