Android的转换的ArrayList<&HashMap的LT;字符串,字符串>> MYLIST到字符串数组字符串、数组、LT、Android

2023-09-06 18:14:30 作者:北巷长歌悠i

我已创建一个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.