[Java] 如何将数组转成Collection
摘要:我们可以使用java.util.Arrays类将数组转换成List/Collection。这个类提供的静态方法asList(Object[] a)能够将数组转成List/Collection。[代码]上面代码的输出是:[代码]这个例子来自:http://www.kodejava.org/examples/25.html
阅读全文
posted @ 2010-07-01 17:40
posted @ 2010-07-01 17:40
posted @ 2010-07-01 13:14
posted @ 2010-07-01 13:06
posted @ 2010-07-01 12:05
posted @ 2010-07-01 10:37