int a = 3; // a = 5 int b = a++; // b = 3 int c = ++a; // c = 5
这是为什么呢?
double a = Math.pow(2,3); // 等同于2的三次方
也就是说,如果想要实现幂运算,需要借助与Math数学类中的pow方法。