> For the complete documentation index, see [llms.txt](https://lxs-shmily.gitbook.io/java-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lxs-shmily.gitbook.io/java-notes/citicbank/citic-summary/2.md).

# Switch可以用的参数种类

A switch works with the `byte`, `short`, `char`, and `int` primitive data types. It also works with `enumerated types` (discussed in EnumTypes), the `String` class, and a few special classes that wrap certain primitive types: `Character`, `Byte`, `Short`, and `Integer`(discussed in Numbers and Strings).
