AtomicReference<ArrayList> difficulties and alternatives
<p>So in various programs that I have been writing for fun, I have come across concurrent modification exceptions. </p>

<p>In my naive attempt to solve this problem I used an Atomicinstead of some sort of concurrent collection. I am somewhat familiar with why this is casing errors. Essentially the individual elements of the ArrayList are not synchronized and can be modified at whim by different threads.</p>

<p><hr />
Could someone summarize for me</p>

<p><li>What errors occur when i try to make an atomic reference to a collection </li>
<li>What is a legitimate use case for an atomic reference to an Array or list</li>
<li>What are some better alternatives for storing instances for a game which can be used by multiple threads</li></p>

<hr />