|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectDataStructures.StackArray<E>
E - the type of elements held in this stackpublic class StackArray<E>
An array implementation of a stack
| Constructor Summary | |
|---|---|
StackArray()
Creates an empty stack suitable for holding items of type E |
|
| Method Summary | |
|---|---|
boolean |
isEmpty()
Indicates the status of the stack. |
E |
pop()
Pops an item off the stack. |
void |
push(E item)
Pushes an item onto the stack. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackArray()
| Method Detail |
|---|
public boolean isEmpty()
Stack
isEmpty in interface Stack<E>true if the stack is empty.public void push(E item)
Stack
push in interface Stack<E>item - the item of type E to be pushed.public E pop()
Stack
pop in interface Stack<E>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||