Java-Arithmetic Compound Assignment Operators

Arithmetic Compound Assignment Operators Java provides special operators that can be used to combine an arithmetic operation with an assignment. As you probably know, statements like the following are quite common in programming : In Java, you can rewrite this statement as shown here : This version uses the += compound assignment operator. Both statements … Read more…