Update LifeCycleDemo.java

minor changes