Monday February 13th, 2023
Lecture Outline
- A data structure is simply just a way to store and manage data
- There are many types of data structures. Each have their own pros/cons and use cases. It is important to be aware of the many types of data structures, and how to use them
- Arrays are not resizeable. To add something to an already full array, we must create a new array and copy the contents of the old array into the new array
- ArrayLists are arrays that are resizeable and dynamic. You can easily add and remove stuff without needing to worry about resizing (the ArrayList library handles all the hard work for you!)
- ArrayList methods: .add(), .get(), .remove(), .isEmpty()
Lecture Recording
Lecture Slides
Code