Introduction to Java Homework