D
Damo
Hi,
I'm trying to merge some Lists, I've got a method called
mergeAndSort(List1, List2); I'm calling it twice.
as in
finalList = mergeAndSort(List1, List2);
finalList = mergeAndSort(finalList, List3);
When I do this I get a ConcurrentModificationException.
Does anyone know what causes this. I believe it is caused by modifying
a list while iterating through it?
I'm trying to merge some Lists, I've got a method called
mergeAndSort(List1, List2); I'm calling it twice.
as in
finalList = mergeAndSort(List1, List2);
finalList = mergeAndSort(finalList, List3);
When I do this I get a ConcurrentModificationException.
Does anyone know what causes this. I believe it is caused by modifying
a list while iterating through it?