Hello everyone,
I would like to begin this by mentioning that I am learning Java through the app SoloLearn. I have understood most of what I have covered (which is the entire Basics section) but I did not understand something involving Prefix and Postfix Increment (+) operators.
I don't understand why in this example the result is 35
int x=34;
int y= ++x
but in this it is still 34.
int x=34;
int y= x++;
Can someone help me understand why this is? Thank you!