top of page
04 Operators
Compound Operators
This is a convenient shorthand to perform multiplication of a variable with another constant or variable.
Compound Equivalent
x = y; x = x y;
x += y; x = x + y;
x -= y; x = x - y;
x /= y; x = x / y;
x: variable. int, float, double, byte, short, long.
y: variable or constant. int, float, double, byte, short, long.
bottom of page