BigInteger.setBit

Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit set. (Computes {@code (this | (1<<n))}.)

@param n index of bit to set. @return {@code this | (1<<n)} @throws ArithmeticException {@code n} is negative.

class BigInteger
setBit
(
int n
)

Meta