What method would you use to determine if the the bit that represents 2^x is a 1 or 0 ?
Another alternative:
if (BigInteger.valueOf(value).testBit(x)) { // ... }