This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
As you have already been told, you have only written the first part of the while loop; it must be followed by a single statement but you can susbtitute a block for that single statement. It is all in the Java Language Specification (JLS); here is the definition for Statement:You can see that while (line 10) is a kind of statement, and most but not all kinds of statement finish with semicolons. Block does not require a terminal semicolon, which would actually count as a new Statement. The JLS is by no means easy to understand, I am afraid.