ArrayList 转 String[ ]
int size=list.size();
String[] array = (String[])list.toArray(new String[size]);
int size=list.size();
String[] array = (String[])list.toArray(new String[size]);
本文标题:56.ArrayList和String[ ]相互转化:
本文链接:https://www.haomeiwen.com/subject/wqujgctx.html
网友评论