Remove the thread. Still not equal. I don’t understand why we need to double-nest List<List<String>>. Each loop re-obtains a List<String> instance from pathList. The size() of this instance seems to have nothing to do with pics.size(). With the addition of threads, it is no longer executed sequentially from beginning to end. Maybe the for loop outside the thread has ended. The code in the thread just starts executing.
Remove the thread. Still not equal.
I don’t understand why we need to double-nest List<List<String>>.
Each loop re-obtains a List<String> instance from pathList. The size() of this instance seems to have nothing to do with pics.size().
With the addition of threads, it is no longer executed sequentially from beginning to end. Maybe the for loop outside the thread has ended. The code in the thread just starts executing.