Android convert the ArrayList<HashMap<String,String>> mylist to stringarray

北慕城南 提交于 2020-01-23 21:21:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!