|
|
|
This lecture introduces
Collection classes from Chapter 3. Before this lecture, students should know
about these items:
|
|
1. How to implement simple classes, such as
those in Chapter 2.
|
|
2. How to use Java arrays.
|
|
This lecture presents
Collection classes using an example: the Bag class. After this lecture, it would be a good idea
to give further coverage of some issues from Section 3.2. In particular, you
should cover the techniques used to ensure sufficient capacity of the bag’s
array, and the addAll and union methods, which are not covered in this
presentation.
|