Java Array Min Value arrayMin(int[] property)

Here you can find the source of arrayMin(int[] property)

Description

array Min

License

Open Source License

Declaration

public static int arrayMin(int[] property) 

Method Source Code

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

import java.util.Arrays;

public class Main {
    public static int arrayMin(int[] property) {
        int[] copy = property.clone();
        int min = 0;
        int numElements = copy.length;
        Arrays.sort(copy);/*from  w ww.  j  av a 2 s . co m*/

        if (numElements > 0)
            min = copy[0];

        return min;
    }
}

Related

  1. argMin(int[] a)
  2. arrayMin(double minVal, double[] vals)
  3. arrayMin(double[] arr)
  4. arrayMin(double[] x)
  5. arrayMin(final double[] array)
  6. findMin(float[] array)
  7. findMin(int[] workArray, int idx)
  8. findMin(String[] strs)
  9. findMin2(int[] workArray, int idx, int min)