|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Stack<E>
Method Summary | |
---|---|
boolean |
empty()
Tests if this stack is empty. |
int |
howMany()
Returns the number of elements inside the Stack. |
E |
peek()
Looks at the object at the top of this stack without removing it from the stack. |
E |
pop()
Removes the object at the top of this stack and returns that object as the value of this function. |
E |
push(E item)
Pushes an item onto the top of this stack. |
int |
search(E o)
Returns the 1-based position where an object is on this stack. |
Method Detail |
---|
boolean empty()
E peek()
E pop()
E push(E item)
int search(E o)
int howMany()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |