Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does a basic Iterator allow you to do?
Think about the direction and the ability to access elements one at a time.
Name a method provided by ListIterator that is not available in Iterator.
Consider the capabilities that allow changing the collection.
What method can be used to traverse a collection backward using ListIterator?
Think about movement in both directions offered by ListIterator.
True or False: An Iterator can modify the collection while iterating.
Recall the basic capabilities of Iterator.
Write a method that uses a Spliterator to take a List of integers and find the sum of even numbers in parallel.
Think about how you can leverage the capabilities of Spliterator to perform operations in parallel.
Create a ListIterator to insert specific values into a LinkedList at certain positions and print the updated list.
Consider how ListIterator allows for adding elements during traversal.
4 more questions in this section. Enroll free to practise them all.
Enroll free