added ThreadSynchronizationExample.java to demonstrate Thread Synchronization in Java