Is there a method or a way to print a bitset as series of bits such as 1001011
For example, the following code:
BitSet b = new BitSet(6);
b.set(1);
b.set(3);
b.set(4);
// I want to print b like 101100
System.out.println(b);
Thanks