AFAIK, there are two approaches: Iterate over a copy of the collection Use the iterator of the actual collection For instance, List<Foo> fooListCopy ...
-
May 18, 2022
- 0 Comments