List<String>[][] () { Set<List<String>[]> set = new HashSet<>(); set.add(new List[]{Arrays.asList("a", "b"), Arrays.asList("c", "d")}); List<String>[][] arr = set.toArray(new List[0][]); return arr; }