Select Git revision
switch-examples
-
-
- Open with
- Visual Studio Code
- IntelliJ IDEA
- Download source code

Christopher Bohn authored
Shows switching on integers, strings, and enums. Shows all cases with break, shows intentional fall-through, and shows idiomatic uncommented fall-through for two identical cases.
Name | Last commit | Last update |
---|---|---|
src | ||
.gitignore | ||
pom.xml |