All Packages Class Hierarchy This Package Previous Next Index
Class jdsl.simple.ref.LinkedStack
java.lang.Object
|
+----jdsl.simple.ref.LinkedStack
- public class LinkedStack
- extends Object
- implements Stack
Implementation of a stack by means of a linked list. The nodes of the
linked list are represented by class Node which stores a reference to
its element and the next node in the list.
-
LinkedStack()
-
-
isEmpty()
-
-
pop()
-
-
push(Object)
-
-
size()
-
-
top()
-
LinkedStack
public LinkedStack()
size
public int size()
isEmpty
public boolean isEmpty()
push
public void push(Object obj)
top
public Object top() throws StackEmptyException
pop
public Object pop() throws StackEmptyException
All Packages Class Hierarchy This Package Previous Next Index