Collection提供了一个方法:toArray
jdk1.5前:返回Object Object[] array = list.toArray();
返回String String[] array =list.toArray(new String[list.szie()]);
标签:1.5 gpo list blog obj nbsp body pos []
Collection提供了一个方法:toArray
jdk1.5前:返回Object Object[] array = list.toArray();
返回String String[] array =list.toArray(new String[list.szie()]);
标签:1.5 gpo list blog obj nbsp body pos []
原文地址:https://www.cnblogs.com/gjack/p/8276915.html