+ 1

What does x +=x mean in java?

17th Jul 2018, 9:45 PM
Neha Dhar
Neha Dhar - avatar
3 odpowiedzi
+ 1
x += x is short for x = x +x the same applies to -= *= /= and %=
17th Jul 2018, 11:37 PM
Mau
Mau - avatar
0
it means that you want the program to add x to itself same as x*2
17th Jul 2018, 9:49 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
0
thanks a lot
17th Jul 2018, 9:53 PM
Neha Dhar
Neha Dhar - avatar