摘要:
整出源代码,对应目录以及 阅读全文
摘要:
1 package com.spp.testComparator; 2 3 import java.util.Comparator; 4 5 public class MyComparator implements Comparator { 6 7 @Override 8 public int compare(Object o1, Object o2) { 9 if(null==o1||null==o2){10 return -1;11 }12 User u1=(User) o1;13 ... 阅读全文