esuslogo
 [To advertise Java(tm) Events here, contact joris@esus.com!]
banner

Java™
by example!






New @ Esus.com


  gb  In-house search engine for better results!

  gb  Get updates with the esus.com
newsletter!









  Home 
 Browse Categories 
 Ask a Java Question 
 Help 
  For Java Tips & Tricks, subscribe to the esus.com newsletter!
Search Java Q&A, Links, API's:   adv 

Become a member to observe this category
Stack

A stack is a datastructure that allows you to use the Last-in-First-out (LIFO) principle. Whatever you put on the stack last, you will get first. You can compare it with a plateholder in a restaurant kitchen. If they want the first plate on the plateholder, they have to remove all the plates that are on top of it. The two main stack operations are push and pop. Push adds something on top of the stack while pop removes the top element off the stack. The Stack class also contains a search element to look up whether an element in the stack.

Featured Books


Subcategories



      Questions & Answers
      = answered, = unanswered

      General:

        What is a stack and how do I use one in Java?


      Further Information (sorted alphabetically)
      Api's:

      Related Books:







      Terms of Service | Privacy Policy | Contact

      Copyright © 2000-2003 Esus.com - All Rights Reserved 
      Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. Esus.com is independent of Sun Microsystems, Inc. All other trademarks are the sole property of their respective owners.