Java List Max max(List data)

Here you can find the source of max(List data)

Description

max

License

Open Source License

Declaration

public static double max(List<Double> data) 

Method Source Code

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

import java.util.Collections;
import java.util.List;

public class Main {
    public static double max(List<Double> data) {
        Collections.sort(data);/*  w  w w  .j  av a 2s . com*/
        int n = data.size();
        return data.get(n - 1);
    }
}

Related

  1. max(final List aList, final Double aDefalut)
  2. max(List values)
  3. max(List a, List b)
  4. max(List booleans)
  5. max(List a)
  6. max(List l)
  7. max(List liste)
  8. max(List list, int maximumSize)
  9. max(List runtimeList)