Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stacks

Status
Not open for further replies.

mackey333

Technical User
Joined
May 10, 2001
Messages
563
Location
US
I've heard of a stack in c++. From what I understand it is some sort of array. What exactly is a stack and can I make one in java? -Greg :-Q

flaga.gif
 
a stack can be an array or a linked list. Imagine a stack of dishes and you can only put a dish on top or take a dish of the top. The only major operations you can do on a stack is pop and push.

You can implement a stack using a array, linked list or there is a stack class in Java


"so many events, so little time"
 
thanks i'll check it out.. -Greg :-Q

flaga.gif
 
Status
Not open for further replies.

Similar threads

  • Locked
  • Question Question
Replies
3
Views
178

Part and Inventory Search

Sponsor

Back
Top