package com.lirun.operator;
public class Demo04 {
public static void main(String[] args) {
//++ – 自增 自减 一元运算符
int a = 3;
int b = a++;
System.out.println(a);
int c = ++a;
System.out.println(a);
System.out.println(b);
System.out.println(c);
//幂运算 2^3 2*2*2* = 8,很多运算,会用一些工具类来操作
double pow = Math.pow(3,2);//Math.pow幂运算
System.out.println(pow);
}
}