摘要: 今天偶然看到这个问题: 'a = a++;'操作执行完后,a的值不变。 自己简单测试了一下,确实是这样,开始时没想明白,以下是对该操作的理解及记录。 int a = 10; 1)a = a + 1; System.out.println(a); // a = 11; 2)a++; System.ou 阅读全文
posted @ 2022-03-03 23:04 yusahn 阅读(508) 评论(0) 推荐(0)