看板 [ java ]
討論串[問題] 如何走訪PriorityQueue但不移除元素?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者peanut97 (花生)時間12年前 (2012/03/29 18:58), 編輯資訊
1
0
0
內容預覽:
查了好多資料,包括官方API、google網頁,都沒有看這樣的問題.... 我想請問:. 想要把PriorityQueue裡面的內容依優先順序印出來檢查一下,. 但不要把裡面的元素移除,該怎麼做?. 理由是我自己寫Comparator,想debug一下,看看某狀態時的PriorityQueue是不是
(還有943個字)

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者awert ( )時間12年前 (2012/03/29 20:35), 編輯資訊
0
0
0
內容預覽:
The Iterator provided in method is not guaranteed to traverse the elements. of the priority queue in any particular order. If you need ordered. traver
(還有631個字)
首頁
上一頁
1
下一頁
尾頁