我得到了这些数组:
String[] s0={"A","A","B","B","A","C"};
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);
//result:
String[] s1={"A","30","","10"};
String[] s2={"A","","","3"};
String[] s3={"B","20","10",""};
String[] s4={"B","","20",""};
String[] s5={"A","","",""};
String[] s6={"C","","","2"};
结果应该有6个字符串数组,每个字符串数组应该有4个字符串对应4列:这很难,你知道怎么做吗?