Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

is in JAVA smth like stack or queue or linked list and if it exists..how to use it?

  Asked By: Lloyd    Date: Apr 29    Category: Java    Views: 908
  

is in JAVA smth like stack or queue or linked list and if it exists..how to use
it?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Emma Campbell     Answered On: Apr 29

yes you have all these inbuilt in java  packages.
refer java docs.

 
Answer #2    Answered By: Kellie Bishop     Answered On: Apr 29

Java has stack  and LikedList.
About the Queue, I am not sure.
And LikedList has no search method.

Stack and LinkedList are in java.util package.
To use it, just instantiate the object and ready to use.

java.util.Stack stack = new Stack();
stack.add("one");
stack.add("two");
stack.pop();
.....

And apply the same pattern with LinkedList.

 
Answer #3    Answered By: Mona Wagner     Answered On: Apr 29

read java.util.* package. then u can understand ur problem.

 




Tagged: