Java ArrayList Max Max(ArrayList> data)

Here you can find the source of Max(ArrayList> data)

Description

Max

License

Open Source License

Declaration

public static int Max(ArrayList<ArrayList<Integer>> data) 

Method Source Code

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

import java.util.ArrayList;
import java.util.Collection;

public class Main {
    public static int Max(Collection<Integer> a) {
        int i = 0;
        for (int z : a)
            i = Math.max(i, z);/*from w  ww.j a v a2 s.  co m*/
        return i;

    }

    public static int Max(ArrayList<ArrayList<Integer>> data) {
        int c = 0;
        for (int i = 0; i < data.size(); i++)
            c = Math.max(c, Max(data.get(i)));
        return c;
    }
}

Related

  1. getMax(ArrayList noise)
  2. getMaxEntryLength(ArrayList> dArr)
  3. getMaxOfArrayListInteger(List integerList)
  4. getMaxString(ArrayList labels, int currindx)
  5. getMaxValue(ArrayList values)
  6. Max(ArrayList values)
  7. maxEltsInOneSetOfValues(ArrayList values)
  8. maxInColumns(ArrayList lines)
  9. maxIntValue(ArrayList ints)