There is no '=+' operator in java. In an expression, the right-hand side is evaluated first. Thus if you have an expression: ans =+ 5; then it is the same as: ans =(+ 5); which is: ans = 5;
If you have an expression: ans += 5; then it is the same as: ans = ans + 5;