1 .到阵列
eg : list.to array (新字符串[ list.size ] ) ) ) ) ) ) ) ) )。
其中,请注意list类型与数组的类型匹配。 其中,缺省列表是字符串。 如果list是Integer类型,则为list.to array (new integer [ list.size ] )。
2 .流流
list.to stream.to array (string [ ] : new )。
同样,list是什么类型的? 接下来是写什么类型的数组
3 .收集工具类
collection util.list to array (list,Clazz ) )。
我个人喜欢用这种类型