I.T. Discussion Community!
-Collapse +Expand
Coder
Search Coder Group:

Advanced
-Collapse +Expand Coder Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Coder Store
PRESTWOODSTORE

Prestwood eMagazine

September Edition
Subscribe now! It's Free!
Enter your email:

   ► KBRole-Based T...Coding & OOGeneral Codi...   Print This     
  From the August 2013 Issue of Prestwood eMag
 
Coder General Coding Concepts:
Stack
 
Posted 11 years ago on 6/30/2008
Take Away: A queue-like data structure which supports the last in, first out functionality.
Coder Definition Flashcard:
 A flashcard from our Coder Flashcards Library
 A definition from our Coder Definitions Page

KB101257

Stack - A queue-like data structure which supports the last in, first out functionality.

A data structure that supports adding (a push) and removing (a pop) elements based on last in, first out ordering. Data that is pushed into a stack will be popped out in reverse order. For example, if a b c and d are pushed into a stack. d c b and then a will be popped out.

Other supported operations include:
empty(): tests if the stack is empty.
peek(): returns the object on the top of the stack without removing it.

More Info

KB Post:  Stacks in Java

Comments

0 Comments.
Share a thought or comment...
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1162A1
Enter key:
Definition Contributed By Stephen Berry:
Visit Profile

 KB Article #101257 Counter
6908
Since 6/30/2008

Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech