Java基础:数组Array转成List的几种方法
摘要:
有三种方法可以实现
String[] words = {"ace", "boom", "crew", "dog", "eon"};
List wordList = Arrays.asList(words);
for循环
List myList = new ArrayList();
String[] myStringArray = new String[] {"Java", "is", "Cool"};
Collections.addAll(myList, myStringArray); 阅读全文
posted @ 2012-05-09 17:07 buguge 阅读(705) 评论(0) 推荐(0) 编辑