Online Java Compiler By
JavaTpoint.com
import java.math.BigInteger; public class BigIntegerClearBitExample2 { public static void main(String[] args){ // create 2BigInteger objects BigInteger big1,big2; // assign values to big1, big2 big1= new BigInteger("15"); // 10011 // perform clearBit operation on big1 with negative index big2 = big1.clearBit(-2); String str="Result of clearBit operation on "+big1+ " is "+ big2; System.out.println(str); } }
Output