File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PriorityQueue order?

 
Anthony Karta
Ranch Hand
Posts: 342
  • 0
  • 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
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic