{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

20091104-Collections

20091104-Collections - CSE115 Introduction to Computer...

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

View Full Document Right Arrow Icon
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 Document Right 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 Review session stay tuned for announcement!
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 Document Right 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 what does addActionListener do?
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 collection replace by an actual type
Background image of page 5

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

View Full Document Right 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.

{[ snackBarMessage ]}

Page1 / 11

20091104-Collections - CSE115 Introduction to Computer...

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

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