

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Announcements Quiz – Wednesday, Feb 15. Continue reviewing chapter 4. Homework due Friday. For/While Loop Relationship How can you convert one to the other? Let's look at the parts, see how they relate to each other What are the ‘rules’ for deciding whether to use a for loop or a while loop?
Finding a particular student Let’s write a method public void printStudent( String studentID ) that uses the studentID to find a student’s record an print it. [Write pseudo-code first. Then try to write loop. What if student not found? What should we do when we find the student?] ArrayLists and arrays ArrayLists are variable size, arrays are fixed ArrayLists store objects, arrays can store values of any type (including primitives like int) Declaration: ArrayList