I'm a bit confused about this code:
int r = 7;
boolean result1 = r == r++; //
boolean result2 = r++ == r; //
System.out.println(result1);
System.out.println(result2);
I would think both are true, but result1 is true and result2 is false.
The Oracle tutorial doesn't really help, in the Java Language Specification I also don't find any answer. So far, I don't understand, how the post-increment operator has the highest operator precedence.