Add support for a ListIterator to the MyLinkedList class, as was done in Exercise 3.13. Add support
Question:
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.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Data Structures and Algorithm Analysis in Java
ISBN: 978-0132576277
3rd edition
Authors: Mark A. Weiss
Question Posted: