Course contentsShow
Java
Lesson 1279 of 2,87029. Iterators and IterablePro lesson

remove(): Removing Elements During Iteration

Use remove() to safely delete the last element returned by next() from the collection.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.