为什么这个不起作用?
private List<Integer> xShot = new ArrayList<Integer>();
...codes
...codes
...codes
...codes
xShot.get(0) += 5;
不明白为什么赋值语句左边的´isn't´不是一个变量。
有人能帮忙吗?
5 += 5
。 左边的5不是一个变量。 - om-nom-nom