[Solved] What does “+=” operator do? [duplicate]

[ad_1]

From:
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/op1.html

You can also combine the arithmetic operators with the simple assignment operator to create compound assignments. For example, x+=1; and x=x+1; both increment the value of x by 1.

6

[ad_2]

solved What does “+=” operator do? [duplicate]