The semicolon statement terminator is optional in Groovy. Semicolons can be used to separate multiple statements on one line. A semicolon is not required to end a statement if the statement ends at the end of a line. Statements may span multiple lines in cases where the statement would be incomplete at the end of the line.
For example, the following code fragment is valid:
While, the following is not valid (due to dumb statements not being allowed):
Labels
