if-then-else statement


if (boolean expression = true) {
    // do this if the expression is true
} else {
    // do this if the expression is false
}

Resources:
http://docs.oracle.com/javase/tutorial/java/nutsandbolts/if.html
http://www.tutorialspoint.com/java/java_decision_making.htm