--- tags: Setup-Summer21 --- # Lecture 13 Setup/Prep Today we will learn how to set up our own list classes so that someone can write a Java for-loop for our list. The [starter code](https://cs18-summer-2021.github.io/static/classes/13/lec13init.zip) has a version of our `LinkList` implementation and another class (`Votes`) that uses the `LinkList` class. **The code currently does not compile**, because the `Votes` class tries to use a `for` loop to count votes. By the end of lecture, we will have the code running. ## Prep Download the starter code. Refer back to the last five minutes of the last class when we started to look at the difference between the while- and for-loop versions of a contains method. We'll resume working with the slide from that (which is at the end of the notes PDF from the last lecture). ## Late Additions If we have time, we will also start looking at the design of this [code for a basic banking system](https://cs18-summer-2021.github.io/static/classes/13/banking-starter.pdf).