20091104-Collections

20091104-Collections - CSE115:Introductionto...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Click to edit Master subtitle style CSE115: Introduction to  Computer Science I Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:50 645-4739 [email protected]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Announcements Exam 3 on Wednesday 11/11 covers material from last exam up to and including  Friday 11/06  Review on Monday 11/09 Exercises: FA09-CSE115-Exercises project in  LectureCode repository
Background image of page 2
Agenda If you started lab early… Collections Inheritance – our last relationship!
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Collections We have seen that a variable can hold  one object reference at a time. How do we effectively deal with multiple  references? arbitrarily many
Background image of page 4
Collections interface: java.util.Collection<E> (some) classes implementing interface: java.util.HashSet<E> java.util.ArrayList<E> E is the type of element contained in the 
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
HashSet<String> names = new HashSet<String>(); names.add(“Amy”);
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/13/2011 for the course CSE 115 taught by Professor Decker during the Fall '08 term at SUNY Buffalo.

Page1 / 11

20091104-Collections - CSE115:Introductionto...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online