Here you can find the source of toObjectArray(List> lists)
private static Object[] toObjectArray(List<List<String>> lists)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { private static Object[] toObjectArray(List<List<String>> lists) { List<String[]> output = new ArrayList<>(); for (List<String> l : lists) { output.add(l.toArray(new String[0])); }/*w w w . j a v a2s . com*/ return output.toArray(); } }