1.加减乘除
public static void main(String[] args) {
int a = 1;
int b = 2;
int c = 3;
int d = 4;
System.out.println(a+b);
System.out.println(a-b);
System.out.println(a*b);
System.out.println(d/a);
}
2.自增/自减
public static void main(String[] args) {
int a = 1;
int b= ++a;
System.out.println(a);
System.out.println(b);
}