📜  java switch on what classes - 不管是什么代码示例

📅  最后修改于: 2022-03-11 14:59:27.485000             🧑  作者: Mango

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