|
There are two conditional statements in Java, the if and the switch. The if statement is the general conditional statement, the switch is more specialized. If statement (do you want to learn more about boolean operators?)
Switch statement ("testVariable" must be of a data type that has discrete values, e.g. "byte", "short", "int", "long", "char", or "boolean") switch (testVariable) |