Code example for Iterator

Methods: hasNext, next