1.接口实现类
①List
List list1 = new ArrayList(); List list2 = new LinkedList();
②Set
Set<String> set1 = new HashSet<String>(); Set<String> set2 = new TreeSet<String>();
③Map
Map map = new HashMap(); Map map = new TreeMap();
2.List与Set的区别
List中的数据有序可重复,set无序不重复。