这是我的代码:
List<List<String[]>> myBigList=new ArrayList<List<String[]>>();
String[] s11={"A","30"};
String[] s12={"B","20"};
List<String[]> l1=new ArrayList<String[]>();
l1.add(s11);
l1.add(s12);
String[] s21={"B","10"};
String[] s22={"B","20"};
List<String[]> l2=new ArrayList<String[]>();
l2.add(s21);
l2.add(s22);
String[] s31={"C","2"};
String[] s32={"A","10"};
String[] s33={"A","3"};
List<String[]> l3=new ArrayList<String[]>();
l3.add(s31);
l3.add(s32);
l3.add(s33);
myBigList.add(l1);
myBigList.add(l2);
myBigList.add(l3);
String[][] test2DArr=new String[2][myBigList.size()];
myBigList.toArray(test2DArr);
运行时说“[ERROR] - Uncaught exception escaped” 那么如何将 List> 转换为 String[][]?