Glossary: Java Beyond the Basics
Iterator
Also written: hasNext, iterator
An object that walks a collection one item at a time with hasNext and next, and can safely remove the item it just returned.
Glossary: Java Beyond the Basics
Also written: hasNext, iterator
An object that walks a collection one item at a time with hasNext and next, and can safely remove the item it just returned.