摘要: if语句与三元运算符的转换 public class Main { public static void main(String[] args) { int a=100; int b=200; int max=a>b?a:b; System.out.println(max); } } //三元运算符 阅读全文
posted @ 2021-04-09 09:01 陈二胖爱吃梨 阅读(25) 评论(0) 推荐(0)
摘要: 判断语句 if语句 if(关系表达式){ 语句体; } //举例 public class Main { public static void main(String[] args) { System.out.println("到点了该干嘛"); int time=10; if(n<=9) { Sy 阅读全文
posted @ 2021-04-09 08:16 陈二胖爱吃梨 阅读(155) 评论(0) 推荐(0)