List of usage examples for java.math BigInteger max
public BigInteger max(BigInteger val)
From source file:Main.java
public static void main(String[] args) { BigInteger bi1 = new BigInteger("123"); BigInteger bi2 = new BigInteger("1000"); // assign the max value of bi1, bi2 to bi3 BigInteger bi3 = bi1.max(bi2); System.out.println(bi3);/*from w w w . j a va 2 s .com*/ }