The goal for this recitation is to introduce the collection classes in java.util, especially HashMap, and to explore Module Depency Diagrams.
The activities this week concern the code provided. This is a little information system that keeps track of the user's appointments, and allows the user to find out what has been planned for a given "slot" (regarded as a one-hour period, which is the unit for making appointments in this system). Diary.java uses a Vector, to store the collection of appointments.
public boolean check(TimeDate when) {
return (slot==when);
}
What would this do to the behavior of the whole system?
Object put(Object key, Object value)
Object remove(Object key)
Object get(Object key)
boolean containsKey(Object key)
int size()
DiaryUI --> Diary --> Appointment --> TimeDateCompare your new design with the original design for simplicity, ease of extension, etc.