class Decrement { public static void main(String args[]) { // declare variables int x, y; // assign value to x x = 10; System.out.println("Before --x: Value of x = " + x); // assign value to y y = --x + 10; System.out.println("y = " + y); System.out.println("After --x: Value of x = " + x); } }