First Java Homework