Android的转换的ArrayList<&HashMap的LT;字符串,字符串>> MYLIST到字符串数组
问题描述:
我已创建一个Android应用程序program..I不知道如何在的ArrayList&LT转换; HashMap的<字符串,字符串>> MYLIST
来串array..pls讲一些idea.Thanks提前
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
答
创建一个新的的ArrayList&LT;弦乐&GT;
,穿越MYLIST,一个元素成之后将一行新创建的列表,并最终使用的
列表以获得一个字符串数组。的toArray(T [])
法新创建
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.