# switch

switch语句中的变量类型可以是byte/short/int/char/string。

---

```java
switch(变量){
case 值:

break;
default:

}
```

 

posted on 2021-03-02 10:51  要给小八赚罐头钱  阅读(24)  评论(0)    收藏  举报