Here you can find the source of minLength(List
public static int minLength(List<char[]> patterns)
//package com.java2s; //License from project: LGPL import java.util.List; public class Main { public static int minLength(List<char[]> patterns) { int len = Integer.MAX_VALUE; for (char[] pattern : patterns) { if (pattern.length < len) { len = pattern.length;//from w w w .j a v a 2 s.co m } } return len; } }