Update prob10.java