0

switch

can anyone help me? because i dont understand anything :-(

27th Sep 2016, 2:04 PM
Umut
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 }
27th Sep 2016, 2:10 PM
Raphael
Raphael - avatar
+ 1
thank u lily :-)
28th Sep 2016, 6:32 AM
Umut