Update Ex10.java