Java List Max getMaxOfAList(List list)

Here you can find the source of getMaxOfAList(List list)

Description

Get the maximum double of a list of array of doubles

License

Apache License

Parameter

Parameter Description
list a parameter

Return

maximum double

Declaration

public static double getMaxOfAList(List<Double[]> list) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Arrays;

import java.util.List;

public class Main {
    /**/*from w w  w.  ja v a2  s.  c om*/
     * Get the maximum double of a list of array of doubles
     *
     * @param list
     * @return maximum double
     */
    public static double getMaxOfAList(List<Double[]> list) {
        double max = 0;
        for (Double[] doubles : list) {
            Arrays.sort(doubles);
            double tempMax = doubles[doubles.length - 1];
            if (tempMax > max) {
                max = tempMax;
            }
        }
        return max;
    }
}

Related

  1. getMaximums(List data)
  2. getMaxLength(List values)
  3. getMaxLineWidth(final List str)
  4. getMaxListStringFromList(List days)
  5. getMaxOf(final List list)
  6. getMaxSize(final List list)
  7. getMaxStrWidth(List list)
  8. getMaxValIndex(List vals)
  9. getMaxValue(List list)