Java Reference
In-Depth Information
The if statement lets a program carry out different actions depending on a
condition.
if (amount <= balance)
balance = balance - amount;
182
183
Figure 1
Flowchart for an if Statement
Figure 2
Flowchart for an if/else Statement
Search WWH ::




Custom Search