Untitled

Anonymous
plain_text
01/18/2024 10:11 AM
444 B
20
Indexable
public void removeIterator() {
    if (isOffset()) {
        throw exception();
    } else {
        if (iterator.prev != null) {
            iterator.prev.next = iterator.next;
        }
        if (iterator.next != null) {
            iterator.next.prev = iterator.prev;
        }
        iterator = null;
        length--;
    }
}
Editor is loading...
Leave a Comment