Java Stack and Queue

China
April 25, 2011 11:07pm CST
From Data Construction, I learned two constructions - Stack and Queue. Stack is FILO and Queue is FIFO. In Java, if we want to use Stack and Queue, do we need to create two classes to implement these two construction, or we can use existed classes?
1 response
@jackycui (32)
• China
27 Apr 11
Below is about Java Stack and Queue. Stack: http://www.javaol.net/2011/02/javas-stack-class/ Queue: http://www.javaol.net/2011/02/javas-queue-interface/
• China
30 Apr 11
Hi jackycui, After reading your answer, I know Stack and Queue clearly.