I have ClassA which has a static ArrayList of Objects
public static ArrayList meteorits = new ArrayList();
Basically, you need to use iterator to avoid such concurrent modification:
List list = new ArrayList<>();
for (Iterator iterator = list.iterator(); iterator.hasNext();) {
String string = iterator.next();
if (string.isEmpty()) {
iterator.remove();
}
}
For more details, please check out this post:
Iterating through a Collection, avoiding ConcurrentModificationException when removing in loop