摘要:
自动类型提升 public class TestTypeRaise{ public static void main(String[] args) { //自动类型提升 // 两个操作数有一个为double,返回的结果类型为double double d1 = 10.0; int i1 = 5; d 阅读全文
摘要:
运算符 算术运算符 public class TestOperation{ public static void main(String[] args) { // 运算符 // 算术运算符 int a = 10; int b = 3; System.out.println(a / b); // 3 阅读全文