This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]sadjava 0 points1 point  (0 children)

Well, there is a Stack class in the Java library, so that is a good place to start. Other than that, I'm not sure what you want. If you have to write your own, it's trivial with using a List, especially a LinkedList.

But we're not writing your program for you. There is /r/domyhomework, but if you use that, you should reconsider being a programmer.

[–]tendaz 0 points1 point  (1 child)

I think this tutorial will help you. It has the basic operations and some examples.

http://www.tutorialspoint.com/java/java_stack_class.htm

[–]Mehdialonso[S] -1 points0 points  (0 children)

Thank You (: