aspose file tools*
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
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: 186
Yes, Dequeue extends Queue, adding the ability to add and remove elements at both ends (head and tail) as opposed to just the head.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: collection