Java tutorial
import java.math.BigInteger; public class Main { public static void main(String[] args) { // assign value to bi1 BigInteger bi1 = new BigInteger("8");// 1000 // perform flipbit operation on bi1 with index 1 BigInteger bi2 = bi1.flipBit(1); System.out.println(bi2); } }