title: Java ConcurrentModificationException: Is it possible to add elements to a hashtable while iterating through it?
body: <p>I am iterating through a <code>Hashtable</code> and at one point, I add something in to the <code>Hashtable</code> which is clearly giving me a <code>ConcurrentModificationException</code>. I understand why I am getting the error, but is there a way around this such that I could still iterate through the <code>Hashtable</code> and add values simultaneously?</p>