title: How do I reset an iterator in Java?
body: <p>Below, I have an iterator for a collection named <code>Sigma</code>. How do I reset the iterator to its first element when the <code>while</code> loop completes?</p>
  
  <pre><code>Iterator it = Sigma.iterator();
  
  while (it.hasNext()) {
      letter = (String)it.next();
      System.out.println(letter);
  }
  </code></pre>