在Java中自定义排序
public int compare(Integer a, Integer b) {
return a-b;
}
其中 a-b 表示升序,b-a 表示降序;
本文标题:排序
本文链接:https://www.haomeiwen.com/subject/xhlkqftx.html
网友评论