Decision Statements
Pseudocode:
if (condition) then
statements
else
other statements
endif
Java:
if (condition)
single statement;
else
single statement;
or:
if (condition)
{
statements;
}
else
{
statements;
}
Previous slide
Next slide
Back to first slide
View graphic version