• + 1 comment

    to get number of bits one could use Integer.bitCount