Java BigInteger min() MethodThe min() method of Java BigInteger class is used to get the minimum value of the two BigInteger objects. This method returns the BigInteger whose value is the lesser of this BigInteger and the val method argument. Syntax:Parameter:val - value with which the minimum is to be computed. Exception:NA Returns:This method returns the BigInteger whose value is the lesser between this and val.
Example 1Test it NowOutput: Minimum value among 12345 and 12345 is 12345 Example 2Test it NowOutput: Minimum value among 100 and 10 is 10 Example 3Test it NowOutput: Minimum value among -100 and -10 is -100 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