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

hasNext(): Checking for More Elements

Use hasNext() to test if more elements remain before calling next().

This lesson is for subscribers

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