I converted a String to BigInteger as follows:
String
BigInteger
Scanner sc=new Scanner(System.in); System.out.println(\"enter the message\"); String
https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html.
Every object has a toString() method in Java.