Why doesn\'t this work?
private List xShot = new ArrayList();
...codes
...codes
...codes
...codes
xSho
If you just want to increment by 5 and aren't limited to List specifically, you could avoid arguably verbose xShot.set(0, xShot.get(0) + 5) and do this instead:
List xShot = new ArrayList();
xShot.get(0).addAndGet(5);
This will increment the value of the AtomicInteger in xShot.get(0) by 5 in-place without further ado.