Update LifeCycleDemo.java