The remove method is optional in Iterator and ListIterator. Do the Iterators or ListIterators you get from the JDK lists implement the remove
operation? This is not stated in the documentation.
In summary:
remove
even though it's not explicitly documentedremove
even though it's not explicitly documentedremove
Collections.unmodifiableList
does not support remove
The rule of thumb for the standard classes seems to be: iterators support removal unless there's a good reason not to.