permaculture playing cards
The moose likes Beginning Java and the fly likes collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "collection" Watch "collection" New topic
Author

collection

meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305

hi,

Does Deque is different than Queue ?

thanks


My one regret in life is that I am not someone else.
- Woody Allen
Emanuel Kadziela
Ranch Hand

Joined: Mar 24, 2005
Posts: 187
Yes, Dequeue extends Queue, adding the ability to add and remove elements at both ends (head and tail) as opposed to just the head.
 
Don't get me started about those stupid light bulbs.
 
subject: collection
 
It's not a secret anymore!