The if conditional statement

Figure 156. Conditional block execution Slide presentation Create comment in forum
double saving = 320.00;

if (1000 <= saving) {
  // Rich customer, 1,2% interest rate
  System.out.println(
    "Interest:" + 1.2 * saving / 100);
}
System.out.println("Done!");
Conditional block execution
Done!

Figure 157. if execution syntax Slide presentation Create comment in forum
if (booleanExpression)
  (block | statement)