We have multiple threads calling add(obj) on an ArrayList.
add(obj)
ArrayList
My theory is that when add is called concurrently by two threads,
add
you can use List l = Collections.synchronizedList(new ArrayList()); if you want thread safe version of arrayList.
List l = Collections.synchronizedList(new ArrayList());