Android的转换的ArrayList&LT;&HashMap的LT;字符串,字符串&GT;&GT; MYLIST到字符串数组 [英] Android convert the ArrayList<HashMap<String,String>> mylist to stringarray
本文介绍了Android的转换的ArrayList&LT;&HashMap的LT;字符串,字符串&GT;&GT; MYLIST到字符串数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已创建一个Android应用程序program..I不知道如何在的ArrayList&LT转换; HashMap的&LT;字符串,字符串&GT;&GT; 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.
这篇关于Android的转换的ArrayList&LT;&HashMap的LT;字符串,字符串&GT;&GT; MYLIST到字符串数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文