Update Problem3.java