package operator; public class Demo01 { public static void main(String[] args) { int a = 3; int b = a++;//先赋值再加1 System.out.println(a);//4 int c = ++a;//先加1在赋值 System.out.println(a);//5 System.out.println(b);//3 System.out.println(c);//5 //幂运算 System.out.println("=========="); double math = Math.pow(2,3);//2的3次方 System.out.println(math); } }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)