Operator | Operator Explanation |
| += | The statement x += 1 is the same as x = x + 1; It's like saying assign the value 1 to the value of x. |
| -= | x -= 1 is the same as x = x - 1; |
| *= | x *= 2 is the same as x = x * 2; |
| /= | x /= 2 is the same as x = x / 2; |
| %= | x %= 2 is the same as x = x % 2; |
| &= | x &= 2 is the same as x = x & 2; |
| |= | x |= 2 is the same as x = x | 2; |
| ^= | x ^= 2 is the same as x = x ^ 2; |
| >>= | x >>= 2 is the same as x = x >> 2; |
| <<= | x <<= 2 is the same as x = x << 2; |