Code example for Iterator

Methods: hasNextnext