Here you can find the source of minSize(List... lists)
public static <A> int minSize(List<A>... lists)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static <A> int minSize(List<A>... lists) { int rtn = -1; if (lists != null && lists.length > 0) { rtn = lists[0].size();/*w w w.j a v a2s . co m*/ for (int i = 1; i < lists.length; i++) { int iSize = lists[i].size(); if (iSize < rtn) { rtn = iSize; } } } return rtn; } }