Java BigInteger toString() methodThe toString() method of Java BigInteger class is used to convert the numeric value of this BigInteger object to its equivalent string representation in a given radix or base. Syntax:Parameter:radix - radix of the String representation. Returns:This method returns the String representation of this BigInteger in the given radix. Exception:NA
Example 1Test it NowOutput: String representation of 15 is 15 Example 2Test it NowOutput: String representation of 15 in radix 1 is 15 Example 3Test it NowOutput: String representation of 15 in radix 9 is 16 Example 4Test it NowOutput: String representation of 255 in radix 9 is 313 Next TopicJava BigInteger |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India