Java tutorial
import java.math.BigInteger; public class Main { public static void main(String[] args) { BigInteger bi1 = new BigInteger("7"); // perform setbit operation on bi1 using index 3 BigInteger bi2 = bi1.setBit(3); System.out.println(bi2); } }