Update problem10.java