Here you can find the source of max(BigInteger first, BigInteger second)
public static BigInteger max(BigInteger first, BigInteger second)
//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*/ }