摘要: 1.条件语句if public class HelloWorld { public static void main(String[] args) { boolean b = false; // 如果有多个表达式,必须用大括弧包括起来 if (b) { System.out.println("yes 阅读全文
posted @ 2020-05-03 03:19 杵臼 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1.算数操作符: +(加) -(减) *(乘) /(除于) public class HelloWorld { public static void main(String[] args) { int i = 10; int j = 5; int a = i + j; int b = i - j; 阅读全文
posted @ 2020-05-03 00:57 杵臼 阅读(195) 评论(0) 推荐(0) 编辑