define iterator code example
Example: interator maning
An Iterator is an object that can be used to loop through collections,
like ArrayList and HashSet. It is called an "iterator" because "iterating"
is the technical term for looping. To use an Iterator, you must import it
from the java.