Collections.sort(fileItems, new Comparator<FileItem>() {
public int compare(FileItem arg0, FileItem arg1) {
return arg0.getFieldName().compareTo(arg1.getFieldName());
}
});
转载于:https://www.cnblogs.com/LLLONG/p/3345235.html
Collections.sort(fileItems, new Comparator<FileItem>() {
public int compare(FileItem arg0, FileItem arg1) {
return arg0.getFieldName().compareTo(arg1.getFieldName());
}
});
转载于:https://www.cnblogs.com/LLLONG/p/3345235.html