I want through a HashSet with for (MyClass edg : myHashSet) and inside for , I want to delete an element for my HashSet.
for (MyClass edg : myHashSet) { if(....) myHashSet.remove(); }
but there is a java.util.ConcurrentModificationException error, how can I remove a set item during parcour?
Mehdi source share