Update problem8.java