Java concurrency examples.