ConcurrentModificationException(list) or another datastructur for “searching/comparing and filtering” [duplicate]

This question already has an answer here: Calling remov…