Title: ArrayList Intro & MyArrayList
Course: CPS 261: Advanced Java Concepts ~ DL & MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- ArrayList Intro & MyArrayList lecture video (Time: 40:00)
- ArrayList Intro & MyArrayList document

- ArrayLists give us a more flexible data structure than a normal array. Arrays have the downside that their size is fixed.
- In this lecture, you will be introduced to a few more ArrayList features: ArrayList constructor with a size parameter, add routine with an index, set method, indexOf, remove, toString.
- A sample program is provided to illustrate these new features.
- In order to provide understanding of how ArrayList functions, we have provided a MyArrayList class which provides many of the features that we have been discussing. This is done to give you insite into how ArrayList works. This version does not use Java generics.