Update problem12.java