08 2016 档案

摘要:/** * 要求:去掉List中为 0 的元素 */ //创建数组和空List Integer[] ars = {1,0,0,0,5,0,8,9,0,0,0,65,3,0,0}; List<Integer> lists = new ArrayList<Integer>(ars.length); // 阅读全文
posted @ 2016-08-10 11:31 philonic 阅读(192) 评论(0) 推荐(0)
摘要:一、科普定义(原文:http://903497571.iteye.com/blog/1874752) 这篇博文的两个主角“synchronized”和“读写锁” 1)synchronized 这个同步关键字相信大家都用得比较多,在这就不多说只做几点归纳: Java提供这个关键字,为防止资源冲突提供的 阅读全文
posted @ 2016-08-07 10:31 philonic 阅读(169) 评论(0) 推荐(0)
摘要:Collections.sort(basicinfoList, new Comparator<MlisBasicinfo>() { @Override public int compare(MlisBasicinfo o1, MlisBasicinfo o2) { return o1.getBasi 阅读全文
posted @ 2016-08-07 10:19 philonic 阅读(1465) 评论(0) 推荐(0)