摘要:
//三元运算符 public class Demo04 { public static void main(String[] args) { //X ? Y : Z //如果x为真输出Y反之输出Z //实例 很常用 int score=70; String type = score <60 ?"不及 阅读全文
摘要:
关于java运算符 java语言支持的运算符 代码 +-*/ public class demo1 { public static void main(String[] args) { //二元运算符 //ctrl+D复制当前行到下一行 int a =1; int b =2; int c =3; i 阅读全文