有一个装字符串的数组链表,怎样将他转化为一维数组,求解,有源码,跑的通,在线等待

2024-11-18 07:27:20
推荐回答(3个)
回答1:

List list = new ArrayList();
String temp = "kashfjkahsjkfhajskhf";
int count = temp.length();
for(int i = 0;i < count;i ++){
String[] s = new String[count];
s[i] = temp.substring(i,i+1);
list.add(s);
}
for (String[] strings : list) {
System.out.println(Arrays.toString(strings));
}

回答2:

同学,你说清楚一点吧

回答3:

t