Here you can find the source of minI(Collection
public static Integer minI(Collection<Integer> col)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static Integer minI(Collection<Integer> col) { if (col.isEmpty()) { return null; }//from w ww .ja va 2 s . c o m int min = Integer.MAX_VALUE; for (Integer integer : col) { if (integer < min) { min = integer; } } return min; } }