Java tutorial
//package com.java2s; import java.util.*; public class Main { public static int largestList(Collection<? extends Collection> cs) { if (cs.isEmpty()) return -1; int large = 0; for (Collection c : cs) { large = Math.max(large, c.size()); } return large; } }