摘要:
Switch多选择结构 多选择结构还有一个实现方式就是switch case语句。 switch case 语句判断一个变量与一系列值中某个值是否相等,每个值成为一个分支。 switch(expression){ case value : //语句 break;//可选 //你可以有任意数量的cas 阅读全文
摘要:
三元运算符 package operator; public class Demo07 { public static void main(String[] args) { int a = 10; int b = 20; a+=b;//a = a+b a-=b;//a = a-b System.ou 阅读全文