Computer Science 501
Data Structures and Algorithm Analysis
Fall 2015, The College of Saint Rose
Lecture 2: Associations, Vectors/ArrayLists; Generics
Date: Wednesday, September 9, 2015
Agenda
- Announcements
- Lab 1: Java Refresher [HTML] [PDF] now due Friday night, recap of entire assignment next week
- A quick look at custom classes
- A simple data structure: the Association
- The Vector (now usually the ArrayList instead)
- A quick overview of Java generics
- Lab 2: Practice with Vectors [HTML] [PDF] out
Readings and References
Terminology
- reusability
- preconditions and postconditions
- vector
- cast
- autoboxing/autounboxing
Examples