摘要: 1.List<String> l=new ArrayList<String>(); Map<string,string> m=new HashMap<string,string>(); List和Map都是接口,不能直接new,只能通过其他具体类型实例化赋值给他们。 2.泛型通配符 2.1通配符?表 阅读全文
posted @ 2016-02-28 21:10 haiziguo 阅读(185) 评论(0) 推荐(0)
摘要: java中的集合,无序Set,有序List,有映射关系的Map,以及Queue。 常用集合类:HashSet,TreeSet,ArrayList,ArrayDeque,LinkedList,HashMap,TreeMap Set,List,Queue实现了Collection接口(这个接口通常和It 阅读全文
posted @ 2016-02-28 17:56 haiziguo 阅读(141) 评论(0) 推荐(0)