

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Announcements for csis 110 lecture 14, including a quiz on for and while loops, the relationship between them, and when to use each. The document also discusses removing all items from a list, finding a particular student, and the differences between arraylists and arrays. Students are encouraged to write code and email the results for lab exercises.
Typology: Study notes
1 / 3
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