s-day02-比较器Comparetor的使用
This commit is contained in:
@@ -34,6 +34,6 @@ public class Student implements Comparable<Student>{
|
||||
} else {
|
||||
return 0;
|
||||
}*/
|
||||
return o.score - this.score;
|
||||
return o.score - this.score;//降序
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user