The if Statement
The Java if statement has the following syntax:
if (condition)
statement;
If the boolean condition is true, the statement is executed; if it is false, the statement is skipped
This provides basic decision making capabilities
Previous slide
Next slide
Back to first slide
View graphic version