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.htmlhttp://www.tutorialspoint.com/java/java_decision_making.htm