Update Ex5.java