java 如何打印int的32位 public static void get32location(int num){ for (int i = 31; i >=0; i--) { System.out.print( (num & 1<<i) == 0? 0 : 1); } System.out.println(); }