BigInteger.testBit

Returns {@code true} if and only if the designated bit is set. (Computes {@code ((this & (1<<n)) != 0)}.)

@param n index of bit to test. @return {@code true} if and only if the designated bit is set. @throws ArithmeticException {@code n} is negative.

class BigInteger
bool
testBit
(
int n
)

Meta