对list集合重新排序

对list集合重新排序

Collections.sort(listInfo, new Comparator<Map<String,Object>>() {
				@Override
				public int compare(Map<String, Object> o1, Map<String, Object> o2) {

					int num1=Integer.parseInt(o1.get("jjcd")+"");
					int num2=Integer.parseInt(o2.get("jjcd")+"");
					return num2-num1;
				}
			});
上一篇:Leetcode1143. 最长公共子序列(c#)


下一篇:管道取珠[NOIP2009]