Question #169277

Write four different Java statements that each add 1 to integer variable x.


Expert's answer

x++;

++x;

x+=1;

x=x+1;



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS