Collections.sort(dataList,new Comparator<BaseTransitData>(){
public int compare(BaseTransitData arg0, BaseTransitData arg1) { return arg0.getTransitcode().compareTo(arg1.getTransitcode()); } });本文共 250 字,大约阅读时间需要 1 分钟。
Collections.sort(dataList,new Comparator<BaseTransitData>(){
public int compare(BaseTransitData arg0, BaseTransitData arg1) { return arg0.getTransitcode().compareTo(arg1.getTransitcode()); } });转载于:https://www.cnblogs.com/deepbreath/p/4484134.html