Switch

The switch statement provides a more readable and efficient way to execute different code blocks based on the value of a single variable.

Updated

Cheat sheet: Switch
Category
Java
Level
Apprentice
Tags
java