A simple Java program showing example usage of the synchronized keywork.