code: public static double max(final double... array) {
          Validate.isTrue(array != null, "The Array must not be null");
          Validate.isTrue(array.length != 0, "Array cannot be empty.");
  
          // Finds and returns max
          double max = array[0];
          for (int j = 1; j < array.length; j++) {
              max = max(array[j], max);
          }
  
          return max;
      }
docs: <p>Returns the maximum value in an array.</p>
  
  @param array  an array, must not be null or empty
  @return the minimum value in the array
  @throws IllegalArgumentException if <code>array</code> is <code>null</code>
  @throws IllegalArgumentException if <code>array</code> is empty
  @since 3.4 Changed signature from max(double[]) to max(double...)