Mega Code Archive

 
Categories / Java Book / 003 Essential Classes
 

0183 Constructors

BigInteger(byte[] val) Translates a byte array containing the two's-complement binary representation of a BigInteger into a BigInteger. BigInteger(int signum, byte[] magnitude) Translates the sign-magnitude representation of a BigInteger into a BigInteger. BigInteger(int bitLength, int certainty, Random rnd) Creates a randomly generated positive BigInteger that is probably prime, with the specified bitLength. BigInteger(int numBits, Random rnd) Creates a randomly generated BigInteger, uniformly distributed over the range 0 to (2numBits - 1), inclusive. BigInteger(String val) Translates the decimal String representation of a BigInteger into a BigInteger. BigInteger(String val, int radix) Translates the String representation of a BigInteger in the specified radix into a BigInteger