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
时间: 2024-10-31 11:40:19
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