The ++ and the -- are the increment and decrement operators. The increment operator adds 1 to its operand, and the decrement operator subtracts 1. x = x + 1; can be written as ++x; // prefix form or as x++; // postfix form