public class Traceme { public static void main(String[] args) { int x = 1; int y = 2; int z = 1; x = y++ + --z - ++x; // x=0, y=3, z=0 while(x <= 10){ x += 20; // 1: x=20, y=3, z=0 z *= 2; // 1: x=20, y=3, z=0 y = y++ + ++y; // 1: x=20, y=8, z=0 } // x=20, y=8, z=0 x = 10; x = x++; // x=10, y=8, z=0 x /= 3; // x=3, y=8, z=0 y *= 2; // x=3, y=16, z=0 z += y *= x; // x=3, y=48, z=48 x *= x += 3; // x=18, y=48, z=48 y = x++ - x; // x=19, y=-1, z=48 System.out.println("x = " + x + " y = " + y + " z = " + z); } }