Java Loops Methods Classes - Homework