This is the kind of thing you need to do with some frequency, especially within loops. Java makes incrementing and decrementing a variable by 1 easy with these special operators:
x = 0; x++; //x is 1
You can subtract the same way:
y = 10; y--;
The preceding operators are called post-increment and post-decrement, because they add or subtract 1 after the variable has been evaluated.
You can also use these operators ...