title: How to fix a java.util.ConcurrentModificationException
body: <p>My code results in an error where I do not know how to fix it. I tried putting in print statements but It wont even make it that far. The error occurs  </p>
  
  <p>Here is the exact error</p>
  
  <pre><code>java.util.ConcurrentModificationException
  java.util.ConcurrentModificationException
          at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
          at java.util.HashMap$KeyIterator.next(HashMap.java:928)
          at ca.on.oicr.pinery.lims.gsle.GsleClient.getOrders(GsleClient.java:720)
  </code></pre>
  
  <p>Line 720 is the second for loop</p>