package auxiliary; import java.util.List; public class ListofListContains { public static boolean contains(List<List<String>> container, List<String> contained) { for (List<String> c : container) { if (c.equals(contained)) { return true; } } return false; } }