BigInteger bigInteger = new BigInteger("12345678901234567890"); // Convert BigInteger to string String str = bigInteger.toString(); System.out.println(str);In this example, a BigInteger object is created with a value of 12345678901234567890. The toString method is then used to convert the BigInteger object to a string representation, which is then printed to the console. The java.math.BigInteger class is part of the Java Standard Library.