Can someone tell me why this code results in 1?
What I think should happen is myInt gets modded by 10, resulting in 1, then myInt gets incremented and should become 2. However, it seems the incrementation is discarded.
int myInt = 21;
myInt = myInt++ % 10;
System.out.println( "myInt: " + myInt );