JavaAlgorithms
Elementary and no so elementary Java algorithms
|
Public Member Functions | |
void | push (T val) |
T | peek () |
T | pop () |
void | printStack () |
Protected Member Functions | |
void | popTop () |
Stack
A stack based on a linked list.
Jun 20, 2013
<T> | a type that implements Comparable |
Definition at line 22 of file Stack.java.
T listAlgorithms.Stack< T extends Comparable< T > >.peek | ( | ) |
Definition at line 50 of file Stack.java.
T listAlgorithms.Stack< T extends Comparable< T > >.pop | ( | ) |
Definition at line 61 of file Stack.java.
void listAlgorithms.Stack< T extends Comparable< T > >.popTop | ( | ) | [protected] |
Remove the top element from the stack
Definition at line 39 of file Stack.java.
void listAlgorithms.Stack< T extends Comparable< T > >.printStack | ( | ) |
Definition at line 67 of file Stack.java.
void listAlgorithms.Stack< T extends Comparable< T > >.push | ( | T | val | ) |