Java Array Min Value minArray(int[] arr)

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

Description

min Array

License

Open Source License

Declaration

public static int minArray(int[] arr) 

Method Source Code

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

public class Main {
    public static int minArray(int[] arr) {
        int retVal = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if (arr[i] < retVal)
                retVal = arr[i];// w  w w  .  ja v a2  s  .  co m
        }
        return retVal;
    }
}

Related

  1. min(T[] inputArray, int i, int i0)
  2. min_max_mean_stddev(long[] counts)
  3. min_of_ints(int[] data)
  4. minAndMaxOfArray(float[] array)
  5. minarr(double[] a)
  6. minCeilDiv(int c, int... vals)
  7. minDiff(int... offs)
  8. minDist(double[] q, double[] c, double[][] distMatrix, int orig_n)
  9. minDistance(int[][] colors, int len, int[] color)