Update ProducerAndConsumerDemo.java