Java Array Max Value max(double[] values)

Here you can find the source of max(double[] values)

Description

max

License

Open Source License

Declaration

public static double max(double[] values) 

Method Source Code

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

import java.util.Arrays;

public class Main {
    public static double max(double[] values) {
        Arrays.sort(values);//  w ww. j  a  v  a2s .  c  o m
        return maxOfSortedValues(values);
    }

    public static double maxOfSortedValues(double[] sortedValues) {
        return sortedValues[sortedValues.length - 1];
    }
}

Related

  1. max(double[] data)
  2. max(double[] list)
  3. max(double[] matrix)
  4. max(double[] series)
  5. max(double[] vals)
  6. max(double[] values)
  7. max(double[] values)
  8. max(double[] x)
  9. max(final double aval, double[] b, final int bi, final int len)