开发者

convert array to arraylist?

开发者 https://www.devze.com 2023-01-28 19:18 出处:网络
How do I convert in A开发者_JAVA百科IR 2 for List component to display items?var a:Array = [\'some\',\'values\',\'in\',\'an\',\'array\'];

How do I convert in A开发者_JAVA百科IR 2 for List component to display items?


var a:Array = ['some','values','in','an','array'];
var aList:ArrayList = new ArrayList(a);

documentation for ArrayList constructor

0

精彩评论

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