按照ArrayList指定的某一列进行排序
摘要:
按照ArrayList中指定的某一列进行排序private void sortArrayList(ArrayList nameAndWeight,final int index) {// Collections.sort(nameAndWeight, new Comparator() { @Override public int compare(Object o1, Object o2) { ArrayList list1 = (ArrayList) o1; A... 阅读全文
posted @ 2013-05-30 17:12 ywf—java 阅读(553) 评论(0) 推荐(0) 编辑