CS 4773 Object Oriented Systems January 31, 2005
Changes to TimeCheck:
- nominalResolution is constructor parameter
- getClass().getName() used in TimeCheck.toString()
- duration field changed to a double
More on the project description
Review: The ArrayList
- Implementation of an EventLog.
- DateString should not allow the modification of the date stamp.
- Test as you go implementation.
- Limitations of the java.util.Date class.
- Traversing an ArrayList: iteration and iterators
The iterator interface:
similar to the Enumeration interface used by StringTokenizer
- Object next();
- boolean hasNext();
- void remove(); removes the last element returned by the iterator.
- Using StringBuffer
Introduction to generics: the ArrayList in Java 5
Read about the ArrayList in Core Java 1 starting on page 179.