public BigInteger max (BigInteger val)

Returns the maximum of this BigInteger and val.

Parameters:
val    value with which the maximum is to be computed.

Returns:  the BigInteger whose value is the greater of this and val. If they are equal, either may be returned.