摘要:
1、在List内去除重复数字值,要求尽可能简单 import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.List; public class TestC{ pu 阅读全文
摘要:
1、集合-->数组:toArray() Collection coll = new ArrayList(); coll.add(133); coll.add(53); Object[] array = coll.toArray(); 2、数组-->集合:调用Arrays类的静态方法asList() 阅读全文