Create SyncSample.java

Show how to use synchrosized.