If I modify a Collection while iterating over it using for-each loop, it gives ConcurrentModificationException. Is there any workaround?
If I modify a Collection while iterating over it using for-each loop, it gives ConcurrentModificationException. Is there any workaround?