title: Java, ArrayList and Exception in thread "AWT-EventQueue-0" java.util.ConcurrentModificationException
body: <p>Im iterating through an ArrayList. If I use the old fashion way:</p>
  
  <pre><code>for (int i = 0; i &lt; list.size(); i++)
  {
      list.get(i).update();;
  }
  </code></pre>
  
  <p>it runs ok. But with this:</p>
  
  <pre><code>for (Baseitem item : list)
  {
      item.update();
  }
  </code></pre>
  
  <p>it fails at the first line, inside ArrayList class: Exception in thread "AWT-EventQueue-0" java.util.ConcurrentModificationException yes, outside I do remove items - but certainly not while iterating. How to solve this? I dont use any threads.</p>