Introduce the If-Then control statement.
To copy and paste code visit: www.carbon12.life/Tutorials/Novice_Java/19_If.php
Java Docs control statement summary: https://docs.oracle.com/javase/tutori...
Java Docs If-Then Statement link: https://docs.oracle.com/javase/tutori...
Control Statement overview. (0:00)
If statement explanation. (0:40)
Begin explaining and typing an example utilizing the if statement. (0:53)
Execute first example of if statement. (2:32)
Briefly explain the control. (2:58)
The control is what actually executes your code when the program runs line by line in that order.
Alter the example so the boolean variable evaluates to true. (3:24)
Alter the example by removing the boolean variable and passing the expression directly into the argument of the if statement. (3:48)
Alter the previous example by changing the expression to evaluate to true. (4:23)