Parse octal string to create BigInteger in Java
Description
The following code shows how to parse octal string to create BigInteger.
Example
//from w w w . ja v a 2s. c om
import java.math.BigInteger;
public class Main {
public static void main(String[] argv) throws Exception {
BigInteger bi = new BigInteger("4407760", 8);
System.out.println(bi);
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »