1 public class PR6729 2 { 3 static int attr = 0x9; 4 5 public static void main(String [] args) { 6 boolean res = ( ( 1 << attr ) & 0x1000 ) != 0 ; 7 System.out.println("this should be "+res+": "+isWhite()); 8 } 9 10 public static boolean isWhite() { 11 return ( ( 1 << attr ) & 0x1000 ) != 0 ; 12 } 13 } 14