Java Array Min Value min(int... vals)

Here you can find the source of min(int... vals)

Description

min

License

Apache License

Declaration

public static int min(int... vals) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int min(int... vals) {
        int min = vals[0];
        for (int val : vals) {
            min = (val < min) ? val : min;
        }/*  w  w  w  .j  ava2 s . c o m*/
        return min;
    }
}

Related

  1. min(int... arr)
  2. min(int... array)
  3. min(int... array)
  4. min(int... list)
  5. min(int... numbers)
  6. min(int... values)
  7. min(int... xs)
  8. min(int[] a)
  9. min(int[] arr)