question: public void testFlipBitNegativeInside4 ( ) { String as = "-4294967295" ; String res = "-4294967296" ; int number = 0 ; BigInteger aNumber = new BigInteger ( as ) ; BigInteger result = aNumber . flipBit ( number ) ; assertEquals ( res , result . toString ( ) ) ; }
target:  flipBit(0) in the negative number of length 1 with all ones in bit representation. the resulting number's length is 2.