Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Statement Lists [3/6]

Statements of a statement list must be separated by colon (:) symbols. A semicolon (;) symbol ends a statement list.

A statement list can contain many plain statements. The last statement of a statement list can be any statement.

Plain statements are statements that must always be ended by a semicolon (;) or colon (:) symbol. A println statement is a plain statement.

A for statement is not a plain statement, because it can end with a statement block.

Loading...