Java Array Min Value minimum(double[] list)

Here you can find the source of minimum(double[] list)

Description

minimum

License

Open Source License

Declaration

public static double minimum(double[] list) 

Method Source Code

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

public class Main {
    public static double minimum(double[] list) {
        double min = list[0];
        for (int i = 1; i < list.length; ++i)
            if (list[i] < min)
                min = list[i];// w w w. j a v a 2  s.c  o m
        return min;
    }

    public static int minimum(int[] list) {
        int min = list[0];
        for (int i = 1; i < list.length; ++i)
            if (list[i] < min)
                min = list[i];
        return min;
    }
}

Related

  1. minFastSort(double x[], int idx[], int n, int m)
  2. minFastSort(double[] x, int[] idx, int size)
  3. minIdx(int[] in)
  4. minIgnoreIndex(double[] array, int indexToIgnore)
  5. minimum(char[] set)
  6. minimum(float[] array)
  7. minimum(int... values)
  8. minimumDotProduct(int[] a, int[] b)
  9. minimumOf(final int[] array)