The "-=" in java means the decrement operator.
Autoincrement and autodecrement are unary operators, which can be placed before or after the operand. The operand must be an integer or floating point variable. The function of the auto-increment and auto-decrement operators is to increase or decrease the value of a variable by 1. The increment and decrement operators placed in front of the operand will first increase or decrease the value of the variable by 1, and then make the variable participate in the expression operation. The increment and decrement operators placed after the operand will first make the variable participate in the operation of the expression, and then add or subtract 1 to the value of the variable.
For example: a-=b, which is equivalent to a=a-b.
php Chinese website, a large number of free Java introductory tutorials, welcome to learn online!
The above is the detailed content of java -= what does it mean. For more information, please follow other related articles on the PHP Chinese website!