答案为什么不是2和1而是1和-1
public class HelloWorld {
public static void main(String[] args) {
int a=2;
int y=3;
int c=a++;
int f=++y;
System.out.println(f-a);
System.out.println(c-a);
}
}
public class HelloWorld {
public static void main(String[] args) {
int a=2;
int y=3;
int c=a++;
int f=++y;
System.out.println(f-a);
System.out.println(c-a);
}
}
2016-04-17
举报