Update Solution3.java, Demo3.java