输出结果是:d++ = 25; ++d = 27; 为什么++d为什么不等于26,还是不理解!
public class HelloWorld {
public static void main(String[] args){
int d = 25;
System.out.println("d++ = " + (d++) );
System.out.println("++d = " + (++d) );
}
}
public class HelloWorld {
public static void main(String[] args){
int d = 25;
System.out.println("d++ = " + (d++) );
System.out.println("++d = " + (++d) );
}
}
2016-08-02
举报