使用Java的PriorityQueue物件來儲存Student物件,並替PriorityQueue物件實作Comparator介面的compare方法來對Student物件進行排序。
確定! 回上一頁