Compound Assignment Operators in Java
The compound assignment operator(+=,-=,*=,/=,%=,&=,|=,^=,<<=,>>=,>>>=) is a combination of the assignment operator and another operator such as an arithmetic operator. So they are also known as Shorthand assignment operators. Syntax: Variable operator variable or constant The following Table shows the compound assignment operators and their usage Operator Expression(shorthand) meaning += vall+=increasee; vall=vall+increasee; -= firstt-=25; firstt=firstt-25; … Read more