| Constructor and Description |
|---|
LStack() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
empty() |
T |
peek()
Peek at the top of this Stack.
|
T |
pop()
Pop out the item at the top of this Stack.
|
T |
push(T item)
Push the item on the top of this Stack.
|
int |
size()
This is not required by the standard API of Stack.
|
java.lang.String |
toString() |
public T push(T item)
Stackpublic T pop()
Stackpublic boolean empty()
public int size()
public java.lang.String toString()
toString in class java.lang.Object