04 2022 档案

摘要:优先队列的申明: Queue<Student> queue = new PriorityQueue<>(); 要使得优先队列的排序起作用,就要让这个student实现Comparable中的compareTo方法 @Override public int compareTo(Object o) { 阅读全文
posted @ 2022-04-13 17:03 梦醒如赦 阅读(49) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示