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

NoSuchElementException When Exhausted

Learn that calling next() after hasNext() returns false throws NoSuchElementException.

This lesson is for subscribers

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