public int bitCount ()

Returns the number of bits in the two's complement representation of this BigInteger that differ from its sign bit. This method is useful when implementing bit-vector style sets atop BigIntegers.

Returns:  number of bits in the two's complement representation of this BigInteger that differ from its sign bit.