code: public static BigInteger minimum(BigInteger... values)
      {
          int len = values.length;
          if (len == 1)
          {
              if (values[0] == null)
              {
                  throw new IllegalArgumentException("Cannot passed null BigInteger entry to minimum()");
              }
              return values[0];
          }
          BigInteger current = values[0];
  
          for (int i=1; i < len; i++)
          {
              if (values[i] == null)
              {
                  throw new IllegalArgumentException("Cannot passed null BigInteger entry to minimum()");
              }
              current = values[i].min(current);
          }
  
          return current;
      }
docs: Calculate the minimum value from an array of values.
  
  @param values Array of values.
  @return minimum value of the provided set.