摘要: public static void splitByDot() { String s = "abc.def.lkj"; String[] strs = s.split("."); System.out.println("strs Length: "+strs.length); // 运行输出: strs Length: 0 } // '.' 好像为转义字符。 使用 '\\.' 即可 public static void splitByDot_() { String... 阅读全文
posted @ 2013-05-21 09:11 LaoQuans 阅读(161) 评论(0) 推荐(0)
摘要: public static void MapClearTest() { List<Map<String,Object>> list = new ArrayList<Map<String,Object>>(); Map<String,Object> map = new HashMap<String,Object>(); for(int i=0;i<3;i++) { map.put("key1", "value1"); map.put("key2", " 阅读全文
posted @ 2013-05-21 09:09 LaoQuans 阅读(4883) 评论(0) 推荐(1)