public class desk {
public static void main(
String args[]) {
int b = 1;
int a =0;
for(int i=0; i< 10; i++){
a =+ b;
// a += b;
}
}
}
Running a =+ b; and then a += b; gives you two different answers.
I know that a =+ b Equivalent to a = a + b
what is a +=b equivalent to ?
Why is that ?