Class Notes (836,865)
Canada (509,936)
COMP 2710 (31)
Tina Yu (20)
Lecture

140321 - Sets with Iterators - Stacks - Queues.doc

1 Page
72 Views
Unlock Document

Department
Computer Science
Course
COMP 2710
Professor
Tina Yu
Semester
Winter

Description
Iterator with set stays at teh same positionYou can call set multiple times To different add methods one for LinkedList and one for Iteratorsame for removeSet with Iteratorsreplace the last element returned by the last call to next or previous with the new elementThe Iterator pointer does not move set can be called multiple times at the same positionIf no next or previous IllegalStateException is thrown at runtimealso set can not be called right after addRemove with Iteratorremoves the object that was returned by the last call to next or previousIterator pointer does not moveRemove can be called only once after each
More Less

Related notes for COMP 2710

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit