Java tutorial
import java.math.BigInteger; public class Main { public static void main(String[] args) { int exponent = 2; // assign value to bi1 BigInteger bi1 = new BigInteger("6"); // perform pow operation on bi1 using exponent BigInteger bi2 = bi1.pow(exponent); System.out.println(bi2); } }