BigInteger.getLowestSetBit

Returns the index of the rightmost (lowest-order) one bit in this BigInteger (the number of zero bits to the right of the rightmost one bit). Returns -1 if this BigInteger contains no one bits. (Computes {@code (this == 0? -1 : log2(this & -this))}.)

@return index of the rightmost one bit in this BigInteger.

class BigInteger
int
getLowestSetBit
()

Meta