Here you can find the source of max(int... _is)
Parameter | Description |
---|---|
_is | the values to compare |
public static int max(int... _is)
//package com.java2s; //License from project: Mozilla Public License public class Main { /**/*from ww w.jav a 2 s .c o m*/ * Takes and returns the maximum value from the given args. * * @param _is * the values to compare * @return the maximum of the given values */ public static int max(int... _is) { int max = Integer.MIN_VALUE; for (int i : _is) if (max < i) max = i; return max; } }