public static void main(String[] args) {
int h = 3;
// int temp = h++;
// System.out.println("temp = " + temp);
h = h++;
System.out.println("h = " + h);
h = ++h;
System.out.println("h = " + h);
}
打印结果是:
h = 3
h = 4