Home > Java > Javagetting Started > java -= what does it mean

java -= what does it mean

爱喝马黛茶的安东尼
Release: 2019-11-11 15:46:05
Original
4689 people have browsed it

java -= what does it mean

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template