Here you can find the source of min(int... _is)
Parameter | Description |
---|---|
_is | the values to compare |
public static int min(int... _is)
//package com.java2s; //License from project: Mozilla Public License public class Main { /**/*from w w w. j a v a2s. c om*/ * Takes and returns the minimum value from the given args. * * @param _is * the values to compare * @return the minimum of the given values */ public static int min(int... _is) { int min = Integer.MAX_VALUE; for (int i : _is) if (min > i) min = i; return min; } }