Here you can find the source of min(final int[] values)
Parameter | Description |
---|---|
values | the set of values values |
public static int min(final int[] values)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . j a v a2 s .c o m*/ * Finds the minimum value from a set of integers. * * @param values the set of values values * @return the int lowest value */ public static int min(final int[] values) { int m = Integer.MAX_VALUE; for (int v : values) { if (v < m) { m = v; } } return m; } }