我有一个包含 [addidas 5 100, nike 10 300, 林地 4 800] 之类的值的数组列表,所以如果我打印 am gettinh 结果为
value1 :: adidas
value2 :: 5
value3 :: 100
结果必须像
value1 :: adidas,nike,woodland
value2 :: 5,10,4
value3 :: 100,300,800
ArrayList<String> array;
int j = 0;
String[] parts;
String value1;
String value2;
String value3;
for (j = 0; j <= array.size(); j++) {
parts = array.split(" ");
value1 = parts[0];
value2 = parts[1];
value3 = parts[2];
System.out.println("value1::" + value1);
System.out.println("value2::" + value2);
System.out.println("value3::" + value3);
}