java break – POFTUT

Switch Case Statement In Java Tutorial with Examples

Switch Case Statement In Java Tutorial with Examples

Switch … Case statement is a popular selection statement used in Java programming. Switch-case simply set cases and related code block to be executed when given case match. Syntax The complete syntax of the switch case statement in Java is like below. switch(EXPRESSION){ case CASE1:     CASE1_CODE_BLOCK;       break;   case CASE2: … Read more