Scenario in which this error was encountered
- I had a list(original list) with let's say 100 item
- Sort original list in ascending order
- Sublist it -> created sublist (ascending ordered sublist)
- Sort original list in descending order
- Iterate over sublist(ascending ordered sublist) list
Got concurrent modification exception
Fix to above scenario
- I had a list(original list) with let's say 100 item
- Sort it in ascending order
- Sublist it -> created sublist (ascending ordered sublist)
- Iterate over sublisted(ascending ordered sublist) list
- Sort original list in descending order