“if” statements
This statement is also called a “conditional” statement. It tests a “condition” and if it’s true, it executes the first set of statements, and if it’s false, instead it executes a second set of statements.
{ y = 0; g.setColor ( Color.red ); }
{ y = 1; g.setColor ( Color.black ); }
The condition is in ( )s.
If the condition is true, execute these statements,