摘要: package base.baidua; public class SwitchDemo2 { public static void main(String[] args) { //JDK7特性switch支持String类型 String name ="臭"; switch (name){ cas 阅读全文
posted @ 2021-10-16 20:56 xxm555 阅读(32) 评论(0) 推荐(0) 编辑
摘要: package base.baidua; public class SwitchDemo1 { public static void main(String[] args) { //case穿透,//switch匹配具体的值 char grade = 'K'; switch (grade){ cas 阅读全文
posted @ 2021-10-16 20:48 xxm555 阅读(40) 评论(0) 推荐(0) 编辑