BigInteger: pow(int exponent) : BigInteger « java.math « Java by API
- Java by API
- java.math
- BigInteger
BigInteger: pow(int exponent)
import java.math.BigInteger;
public class Main {
public static void main(String[] argv) throws Exception {
BigInteger bi1 = new BigInteger("1234567890123456890");
int exponent = 2;
bi1 = bi1.pow(exponent);
}
}
Related examples in the same category