brutil
Interface Stack
- All Superinterfaces:
- Collection
- All Known Implementing Classes:
- AbstractStack
- public interface Stack
- extends Collection
|
Method Summary |
java.lang.Object |
peek()
Returns the object at the top of the stack |
java.lang.Object |
pop()
Removes and returns the object at the top of the stack |
void |
push(java.lang.Object obj)
Inserts the specified object at the top of the stack |
peek
public java.lang.Object peek()
- Returns the object at the top of the stack
pop
public java.lang.Object pop()
- Removes and returns the object at the top of the stack
push
public void push(java.lang.Object obj)
- Inserts the specified object at the top of the stack