Simple examples of Java API concurrency classes