Switch Statement in Java | Syntax, Example
A switch statement in Java is a conditional control statement (or multi-way decision statement) that executes one statement from multiple conditions. It uses the result of an expression to evaluate which statements to execute. It is an alternative to if-else-if…