判断一个整数自++自--并输出结果,
rtrtrtrtrtrtrtrt
不明白题主要求
这样?
public static void main(String[] args) {
Integer a = 1;
System.out.println(a++);// 1
Integer b = 1;
System.out.println(++b);// 2
Integer c = 1;
System.out.println(c--);// 1
Integer d = 1;
System.out.println(--d);// 0
}
这个