title: Sharing an object between two threads and main program
body: <p>I am new to Java and I'm attending a Concurrent Programming course. I am desperately trying to get a minimal working example that can help to demonstrate concepts I have learnt like using 'synchronized' keyword and sharing an object across threads.
  Have been searching, but could not get a basic framework. Java programmers, kindly help.</p>