Android convert the ArrayList<HashMap<String,String>> mylist to stringarray
I have create an android application program..I dont know how t开发者_高级运维o convert the ArrayList<HashMap<String,String>> mylist
to string array..pls tell some idea.Thanks in advance
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.
精彩评论