Java Integer Array Create intArrayMin(int[] arr)

Here you can find the source of intArrayMin(int[] arr)

Description

int Array Min

License

Open Source License

Declaration

public static double intArrayMin(int[] arr) 

Method Source Code

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

public class Main {
    public static double intArrayMin(int[] arr) {
        int min = Integer.MAX_VALUE;

        for (int cur : arr)
            min = Math.min(min, cur);

        return min;
    }/*  w  w w.j av  a  2 s  . c om*/
}

Related

  1. intArrayContains(int val, int[] array)
  2. intArrayContains(int[] array, int key)
  3. intArrayEquals(int[] a1, int[] a2)
  4. intArrayFromString(final String data)
  5. intArrayFromString(String record)
  6. intArraysAreEqual(int array1[], int array2[])
  7. intArraySet(int arr[], int val)