When we use addition assignment operator(+=),
We need to pay attention to the data type.
if the data types are different, implicit type-casting will be used:
referot :lautturi.comint a = 2; a += 3.14;
a = 5
If we use + operator,it won't compile!
Type mismatch: cannot convert from double to int:
int a = 2; a = a + 3.14;
Exception in thread "main" java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from double to int