Update Prob3.java