开发者

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

开发者 https://www.devze.com 2023-04-09 09:25 出处:网络
I have create an android application program..I dont know how t开发者_高级运维o convert theArrayList<HashMap<String,String>> mylist to string array..pls tell some idea.Thanks in advanceCre

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消