Java has the following conditional statements:
if
to specify a block of code to be executed, if a specified condition is trueelse
to specify a block of code to be executed if the same condition is falseelse if
to specify a new condition to test; if the first condition is falseswitch
to specify many alternative blocks of code to be executed?,:
operator to specify one line conditionVisit the following resources to learn more: