Best Use Of Switch Statement In Java8
How to Use Switch Statement in Java A switch statement in Java 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 − …