Collection提供了一个方法:toArray
jdk1.5前:返回Object Object[] array = list.toArray();
返回String String[] array =list.toArray(new String[list.szie()]);
Collection提供了一个方法:toArray
jdk1.5前:返回Object Object[] array = list.toArray();
返回String String[] array =list.toArray(new String[list.szie()]);
原文:https://www.cnblogs.com/gjack/p/8276915.html