Iterator it = arraylist1.iterator();
while(it.hasNext){
String[] s = (String[])it.next();
}
如果当时你申明了类型:
ArrayList
for(String[] s :arraylist1){
System.out.print(s.length);//s即是保存的String数组
}
for(int i=0; i
long l1 = ls[0];
long l2 = ls[1];
System.out.println("l1=" + l1 + " l2=" + l2);
}
for(int i=0; i
String s1 = s[0];
String s2 = s[1];
System.out.println("s1=" + s1 + " s2=" + s2);
}