I was reading about CopyOnWriteArrayList and was wondering how can I demonstrate data race in ArrayList class. Basically I\'m trying to simulate a
CopyOnWriteArrayList
ArrayList
Two threads, one incrementing the arraylist and one decrementing. Data race could happen here.