2016年7月19日
摘要: 中文排序 public static void main(String[] args) { ArrayList list = new ArrayList(); list.add("一鸣惊人-Y"); list.add("人山人海-R"); list.add("海阔天空-H"); list.add("空前绝后-K"); list.add("后来居上-... 阅读全文
posted @ 2016-07-19 10:09 陌生街中吹起褪色故梦 阅读(178) 评论(0) 推荐(0)
摘要: public static void main(String args[]){ List list = new ArrayList(); list.add("luojiahui"); list.add("luojiafeng"); //方法1 Iterator it1 = list.iterator(); ... 阅读全文
posted @ 2016-07-19 09:41 陌生街中吹起褪色故梦 阅读(18226) 评论(0) 推荐(1)
摘要: List> list = new ArrayList>(); Map map = new HashMap(); map.put("key1", "value1"); map.put("key2", "value2"); list.add(map); for (Map m : list) { for (String k : m.keySet()) { System.ou... 阅读全文
posted @ 2016-07-19 09:27 陌生街中吹起褪色故梦 阅读(250) 评论(0) 推荐(0)