Java concurrency: weird output

I’m fooling around with Java threads and I wrote this little program that creates several threads and runs them. In each thread a value is incremented multiple times. I used ThreadLocal class so that …