Java get maximum value of two BigInteger values In this Java core tutorial we learn how to use the java.math.BigInteger.max() method to get the maximum value of two given BigInteger values.