title: Remove Element from Set
body: <p>I'm trying to remove all Strings that are of even length in a set. Here is my code so far, but I am having trouble getting the index from the iterator in the enhanced-for-loop.</p>
  
  <pre><code>public static void removeEvenLength(Set&lt;String&gt; list) {
      for (String s : list) {
          if (s.length() % 2 == 0) {
              list.remove(s);
          }
      }
  }
  </code></pre>