This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PriorityQueue order?  RSS feed

 
Anthony Karta
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Output:
size: 3[bye , hi , hello ]
bye 2
hello 1
hi 0

Why the order of element are different between # and ##??
thanks
 
Priya Viswam
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please go through this link

http://www.coderanch.com/t/252557/java-programmer-SCJP/certification/Priority-Queue-Ordering
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!