Deprecated: 函数 get_currentuserinfo 自版本 4.5.0 起已弃用!请使用 wp_get_current_user() 替代。 in /data/home/qxu1142130176/htdocs/wp-includes/functions.php on line 5383
最新消息:

标签:排序

JAVA中通过List实现学生成绩名次排名
Java

JAVA中通过List实现学生成绩名次排名

前端收藏 6年前 (2018-07-25) 2164浏览

假如我有一个 List<Student> s,Student 有三个属性:name(名字),score(分数),rank(名次)。 我该怎么样根据 score 的大小给每个 s 的每一个 Student 进行排名(不排序,只是确定名次),...