<<< Arithmetic Assignment Operators | Index | Conditional (? :) Operator >>> |
Statements that use the short-hand assignment operators to get the same results:
count += 1; // count is increased by 1 count -= 1; // count is decreased by 1 total += 100.0; // total is increased by 100.0 total -= 100.0; // total is decreased by 100.0 price *= .8; // price is multipled by .8 sum += nextNumber; // sum is increased by the value // of nextNumber
<<< Arithmetic Assignment Operators | Index | Conditional (? :) Operator >>> |