This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Stack and Queue Implementation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Stack and Queue Implementation" Watch "Stack and Queue Implementation" New topic
Author

Stack and Queue Implementation

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1371
How the Data Structure - Stack and Queue is implemented in Java ?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

All the data structures like these are provided by the Collections framework.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

java.util.Stack extends java.util.Vector, which is a self-sizing linear array.
java.util.LinkedList is a doubly-linked list that also declares stack and queue data structure methods (i.e. get, remove, insert).


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stack and Queue Implementation
 
Similar Threads
Data structure in real world
advantage stack over linked list or queue
Queue class?
Regarding java.util.Queue
Stack to Queue