问题
I have create an android application program..I dont know how to convert the ArrayList<HashMap<String,String>> mylist
to string array..pls tell some idea.Thanks in advance
回答1:
Create a new ArrayList<String>
, traverse the "mylist", append one after one element into newly created list and finally use toArray(T[])
method of newly
created list to obtain a string array.
来源:https://stackoverflow.com/questions/7592730/android-convert-the-arraylisthashmapstring-string-mylist-to-stringarray