Question: Add support for a ListIterator to the MyLinkedList class, as was done in Exercise 3.13. Add support for a ListIterator to the MyArrayList class. The

Add support for a ListIterator to the MyLinkedList class, as was done in Exercise 3.13.
Add support for a ListIterator to the MyArrayList class. The ListIterator interface in java.util has more methods than are shown in Section 3.3.5. Notice that you will write a listIterator method to return a newly constructed ListIterator, and further, that the existing iterator method can return a newly constructed ListIterator. Thus you will change ArrayListIterator so that it implements ListIterator instead of Iterator. Throw an UnsupportedOperationException for methods not listed in Section 3.3.5.

Step by Step Solution

3.48 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

public javautilIterator AnyType iterator return new LinkedListIterator public javautilListIterator A... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1486-C-S-A(290).docx

120 KBs Word File

Students Have Also Explored These Related Algorithms Questions!