Homework for Java Basics