Hey JamesCherrill, I still am confused. rather than:
int valueOfExpression = num;
num = num + 1;
I thought, what actually happnes is:
int num = 0;
//when we write num = num++;, what I think happens is:
int valueOfExpression = num;
num = num;
valueOfExpression = num + 1;
//and this leaves num 0, instead of incrementing it to 1.
stultuske, you're right, there is no reason for any emotional reaction on my part for Java's contradiction to my expectations. And, one of the reasons I like being a programmer is that there is no room for arguing with the compiler. But there is nothing wrong with saying Java si wrong either man. Alright, take care.