• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get queue and priority queue in java  RSS feed

 
Ranch Hand
Posts: 1274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to use queue and priority queue.Is there any built in queue and priority queue in java?
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes - search the javadocs to find those real quick.
 
sam liya
Ranch Hand
Posts: 1274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the different between queue.remove() and queue.poll() methods? it both removes the item from queue.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadocs of Queue talk about that.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!