[Bluej-discuss] Code Pad: is it working correctly?
Gordon Royle
gordon at csse.uwa.edu.au
Thu Apr 20 01:31:26 BST 2006
>
> Oooohhh. I just figured it out! If I type in the statement WITHOUT
> the semicolon, I get the icon that I can drag onto the bench. WITH
> the semicolon, no icon.
>
> That will be very confusing to the students.
Without the semicolon it is an EXPRESSION hence is evaluated and the
value is returned.
With the semicolon it is a STATEMENT which is executed.
Maybe it is a good opportunity to get the students understanding the
difference between a statement and an expression?
Gordon
More information about the bluej-discuss
mailing list