

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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Notes; Professor: Hanks; Class: Intro to Programming in Java; Subject: Computer Science Info Systems; University: Fort Lewis College; Term: Fall 2005;
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!
Announcements Quiz – Friday, Oct 7 Any homework questions? Last time : Collections We continued looking at the ArrayList class, and began looking at the remove method. So, say that we had these ArrayLists: private ArrayList
Removing all items from a list Load the student2 project Note that in this version Students have a studentID I have added a buildStudentBody method that creates a bunch of students There is a printAllStudents method that prints all of the students in the studentBody Try to write a method that removes all of the elements in a list. [Copy the printStudents method an modify it to call remove instead – Analyze why this doesn’t work] Look at alternative options