So I managed to solve problems like this by making a copy which seems easier, but I wanted to know other ways without using a copy and not getting the ConcurrentModificationException. I've already solved it using a copy, but It would be appreciated if I could get comments with hints, or dm a solution with an explanation of how to go about doing it without making a copy.