摘要: if选择结构 多重if选择结构 switch分支结构 局部变量 阅读全文
posted @ 2021-04-08 21:28 坏小子1993 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 自动类型提升 public class TestTypeRaise{ public static void main(String[] args) { //自动类型提升 // 两个操作数有一个为double,返回的结果类型为double double d1 = 10.0; int i1 = 5; d 阅读全文
posted @ 2021-04-08 21:11 坏小子1993 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 运算符 算术运算符 public class TestOperation{ public static void main(String[] args) { // 运算符 // 算术运算符 int a = 10; int b = 3; System.out.println(a / b); // 3 阅读全文
posted @ 2021-04-08 20:20 坏小子1993 阅读(63) 评论(0) 推荐(0) 编辑