SyntaxFix
Write A Post
Hire A Developer
Questions
subList function is a trick, the returned object is still in the original list. so if you do any operation in subList, it will cause the concurrent exception in your code, no matter it is single thread or multi thread.