浅学之变量自增
作者:互联网
package operator;
public class Demo01 {
public static void main(String[] args) {
//++ 自增 --自减
int a=5;
int b=a++;
System.out.println(a);//a+1
System.out.println(b);//b=a
System.out.println("=====================");
int c=++a;
System.out.println(a);//a+1
System.out.println(c);//c=加之后的a
}
}
标签:自增,变量,++,浅学,System,int,println,out 来源: https://www.cnblogs.com/speak-please/p/16369313.html