public static void main(String[] args) {

 int x = 7;

 System.out.println("x = " + Integer.toBinaryString(x));
 System.out.println("x <<= 1 = " + Integer.toBinaryString(x <<= 1));
 System.out.println("x <<= 1 = " + Integer.toBinaryString(x <<= 1));
 System.out.println("x <<= 1 = " + Integer.toBinaryString(x <<= 1));
 x = 7;
 System.out.println("x = " + Integer.toBinaryString(x));
 System.out.println("x >>= 1 = " + Integer.toBinaryString(x >>= 1));
 System.out.println("x >>= 1 = " + Integer.toBinaryString(x >>= 1));
 System.out.println("x >>= 1 = " + Integer.toBinaryString(x >>= 1));
 }