BigInteger.flipBit

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

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

class BigInteger
flipBit
(
int n
)

Meta