java基础 一元运算符 // ++ -- 自增 自减 一元运算符 int a = 3; int b = a++; int c = ++a; System.out.println(a);//5 System.out.println(b);//3 System.out.println(c);//5 //幂运算 2^3 很多运算 使用一些工具类来操作 double pow = Math.pow(2, 3);//后面的打出来 alt+enter前面的就出来了 System.out.println(pow);//8.0 //选中Math ctrl+alt+q 查看源代码