Java Syntax Homework