an question on iterator object in the "for" statement
<p>I am trying to understand a java program, which has a code segment such as </p>

<pre><code>for (final Document document : cluster.getDocuments())  {  
    if (documentsShown &gt;= maxNumberOfDocumentsToShow)  {  
        break;  
    }  
    displayDocument(level + 1, document);  
    documentsShown++;  
}  
</code></pre>

<p>Does this mean that <code>cluster.getDocuments()</code> must be an iterator object?</p>
