Java Array Max Value max(int array[])

Here you can find the source of max(int array[])

Description

max

License

Open Source License

Declaration

public static int max(int array[]) 

Method Source Code

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

public class Main {
    public static int max(int array[]) {
        int max = 0;
        for (int elemento : array)
            if (elemento > max)
                max = elemento;//from w  ww.j  a  va2s . c o m
        return max;
    }
}

Related

  1. max(float[] floats)
  2. max(float[] in, int[] idx)
  3. max(float[] position, int x)
  4. max(float[] t)
  5. max(float[] v1, float[] v2)
  6. max(int value1, int value2, int... values)
  7. max(int... _is)
  8. max(int... args)
  9. max(int... array)