HTW Berlin Fachbereich 4 Internationaler Studiengang Internationale Medieninformatik (Bachelor) Info 1: Informatik I Summer Term 2014 |
Laboratory 4 : Club Membership |
"I don't care to belong to any club that will have me as a member." - Groucho Marx
Pre-lab
This week's lab work is intended give you more practice using collections.
Please bring these exercises printed out or written out with you to lab. Please have your name on your page.
P1. How do you write the import statement for using an ArrayList?
P2. How do you define a field that will take a collection of objects of type Student? How does it get initialized?
P3. Write a method that returns true if the parameter month is valid, i.e. between 1 and 12.
P4. How can you compare two names, stored as Strings, to see if they are the same?
Lab assignments are due before your next lab at 22.00. They may, of course, be turned in earlier. You hand them in by preparing the report in PDF and submitting it to Moodle.
Assignment
Club Membership
Writeup
Submit your writeup as your post-lab to the Moodle area.