• Post Reply Bookmark Topic Watch Topic
  • New Topic

Queue class?  RSS feed

 
King-Chieh Wang
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello~
I have a question... I realize there is stack class made availble, but there isn't a Queue class? Is there anyway I can easily get a simple queue class with the simliar methods in the Stack class?
Thanks~
Jack!
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.util.LinkedList can be used as a queue
http://java.sun.com/j2se/1.4.2/docs/api/java/util/LinkedList.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!