Sample Codes for Java Concurrency