Question 1 of 303%
Working with Arrays and Collectionsmedium

A developer needs to remove elements from an ArrayList<String> while iterating over it. Which approach is safest and avoids ConcurrentModificationException?

Select one: