How to modify a Collection while iterating using for-each loop without ConcurrentModificationException?
171
Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop
135457
How to perform Stream functions on an Iterable?
145846
How to add items to a collection while consuming it?
40910
Custom Collection Initializers
33874
How to iterate through two lists in parallel?
18279
How do I avoid scoping collisions of iterator variables?
20449
Is there a way to access an iteration-counter in Java's for-each loop?
89947
ConcurrentModificationException when adding inside a foreach loop in ArrayList
42039
How to iterate through two IEnumerables simultaneously?
68681
concurrentModificationException
67916
Why is it bad to use an iteration variable in a lambda expression
106257
What are the possible problems caused by adding elements to unsynchronized ArrayList's object by multiple threads simultaneously?
58278
Why does Iterable not provide stream() and parallelStream() methods?
130868
rewrite access to collection to avoid "double" finding
103063
How to programmatically specify multiple iterators?
6527
How to avoid java.util.ConcurrentModificationException when iterating through and removing elements from an ArrayList
97642
Initializing an array in Java using the 'advanced' for each loop