BigInteger(String)
时间: 2024-05-19 19:13:37 浏览: 58
BigInteger
The BigInteger(String) constructor creates a new BigInteger object from the specified String.
Syntax:
public BigInteger(String val)
Parameters:
- val: a String containing the value to be converted to a BigInteger
Returns:
A BigInteger object representing the value of the input String.
Example:
// Creating a BigInteger object from a String
String str = "123456789012345678901234567890";
BigInteger bigInt = new BigInteger(str);
阅读全文