Java BigInteger Max max(BigInteger first, BigInteger second)

Here you can find the source of max(BigInteger first, BigInteger second)

Description

max

License

Open Source License

Declaration

public static BigInteger max(BigInteger first, BigInteger second) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.math.BigInteger;

public class Main {
    public static BigInteger max(BigInteger first, BigInteger second) {
        return first.compareTo(second) < 0 ? second : first;
    }/*from   www  .jav a 2 s. c  o  m*/
}

Related

  1. max(BigInteger a, BigInteger b)
  2. maxValue(final BigInteger... values)