setNext
Changes the next element if it is present or throws NoFollowingElementInIteratorException if there is no next element.
Parameters
element
The element to set as the new next element.
Throws
when there is no next element.
Changes the next element if it is present or throws NoFollowingElementInIteratorException if there is no next element.
The element to set as the new next element.
when there is no next element.