//用ArrayList实现
ArrayList<String> temp = new ArrayList<String>();
for(...){
temp.add(value);
}
temp.add(anotherValue);
String[] arr = temp.toArray(new String[]{});
//用ArrayList实现
ArrayList<String> temp = new ArrayList<String>();
for(...){
temp.add(value);
}
temp.add(anotherValue);
String[] arr = temp.toArray(new String[]{});