Update Homework2.java