Here you can find the source of printBits(int meta)
public static void printBits(int meta)
//package com.java2s; //License from project: Open Source License public class Main { public static void printBits(int meta) { for (int k = 0; k < 4; k++) { if (((meta >> k) & 1) == 1) { System.out.print(1); } else { System.out.print(0); }/*from www. ja va 2 s . c o m*/ } System.out.println(); } }