Update Ex4.java