Java Array Min Value minPrim(final int... numbers)

Here you can find the source of minPrim(final int... numbers)

Description

min Prim

License

Open Source License

Declaration

public static int minPrim(final int... numbers) 

Method Source Code

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

public class Main {

    public static int minPrim(final int... numbers) {
        int min = Integer.MAX_VALUE;
        for (final int n : numbers) {
            min = Math.min(min, n);
        }//w ww .  ja va  2s  .  c om
        return min;
    }

    public static Number min(final Number... numbers) {
        double min = Double.MAX_VALUE;
        for (final Number n : numbers) {
            final double d = n.doubleValue();
            min = Math.min(min, d);
        }
        return min;
    }
}

Related

  1. minOfArray(float[] array)
  2. minOfCol(int[][] matrixTable, int colBound)
  3. minOfSortedValues(double[] sortedValues)
  4. minOfSubRange(double[] xs, int start, int end)
  5. minOverArraySubset(double[] array, Iterable subset)
  6. minsort(int[] vet1)
  7. minValue(double array[][])
  8. minValue(double[] from)
  9. minValue(double[] values)