Arithmetic Compound Assignment Operators in java
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 a = a + 4; In Java, you can rewrite this statement as given below a += 4; This version uses the += compound assignment operator. … Read more