collections.linkedlist
Class Stack

java.lang.Object
  extended by collections.linkedlist.Stack

public class Stack
extends java.lang.Object

Shows how to use a LinkedList as a Stack.

Author:
Thomas Rowland

Constructor Summary
Stack()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 java.lang.Object peek()
          peek affineTransform an object on the top of the stack
 java.lang.Object pop()
          pop an object off the top of the stack
 void push(java.lang.Object o)
          push an object onto the top of the stack
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stack

public Stack()
Method Detail

main

public static void main(java.lang.String[] args)

push

public void push(java.lang.Object o)
push an object onto the top of the stack


pop

public java.lang.Object pop()
pop an object off the top of the stack


peek

public java.lang.Object peek()
peek affineTransform an object on the top of the stack