Convert a Big Integer to String in Java
Description
The following code shows how to convert a Big Integer to String.
Example
//from w w w . j a v a2 s.c o m
import java.math.BigInteger;
public class Main {
public static void main(String[] argv) throws Exception {
BigInteger bi = new BigInteger("1023");
String s = bi.toString();
System.out.println(s);
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »