My Java Homework