++--
package operator;
public class Demo4 {
public static void main(String[] args) {
//++自增 --自减 一元运算符
int a = 6;
int b = a++;//执行完代码,先给b赋值,再自增
//a=a+1
System.out.println(a);
int c = ++a;//执行代码前,先自增,再给c赋值
System.out.println(b);
System.out.println(c);
//幂运算,2^3
double pow =Math.pow(2,3);
System.out.println(pow);
}
}