public class Decrement { public static void main( String args[] ) { int x1 = 12 ; int y1 = 12 ; int z1 ; z1 = x1-- + --y1 ; System.out.println( "z1 = " + z1 ); z1 = x1-- + y1-- ; System.out.println( "z1 = " + z1 ); z1 = x1 + y1 ; System.out.println( "z1 = " + z1 ); if ( z1-- == 20 ) z1-- ; // After the conditional expression z1 is 19 // and now we have another "--" so z1 is 18 --z1 ; //Now z1 is 17 System.out.println( "z1 = " + z1 ); } } //class