Can someone please tell me why this code prints out a value of 3.
public class Static {
static int x, y;
public static void main(
String[] args) {
x--;
System.out.println(x);
myMethod();
System.out.println(x + y + ++x);
} // end main(String[])
public static void myMethod() {
y = (x++ + ++x);
System.out.println(x);
} // myMethod()
} // end Static