| The Java Language | CS 161 - Java |
if (expression that evaluates to a boolean result) { // The enclosed statements are performed if true ... } if (expression that evaluates to a boolean result) { // The enclosed statements are performed if true ... } else { // The enclosed statements are performed if true ... }
switch (expression that results in an integer value) { case one_possible_value: ... break; case another_possible_value: ... break; ... default: ... break; }
Question: Why do I say "(or several groups)"
|
jwd |