BigInteger.flipBit
Class Overview | Class Members |
This Package |
All Packages
public BigInteger flipBit( int n ) throws ArithmeticException
Description
Returns a BigInteger whose value is equivalent to this number
with the designated bit flipped. (Computes (this ^ (1 << n)).)
Throws an ArithmeticException if n < 0.