title: How to Iterate over a Set/HashSet without an Iterator?
body: <p>How can I iterate over a <code>Set</code>/<code>HashSet</code> without the following?</p>
  
  <pre><code>Iterator iter = set.iterator();
  while (iter.hasNext()) {
      System.out.println(iter.next());
  }
  </code></pre>