0
switch
can anyone help me? because i dont understand anything :-(
2 Respostas
+ 3
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case.
Syntax
The syntax of enhanced for loop is −
switch(expression) {
case value :
// Statements
break;
case value :
// Statements
break; l
// You can have any number of case statements.
default :
// Statements
}
+ 1
thank u lily :-)