|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.jku.ssw.Stack
public abstract class Stack
A LIFO (last-in-first-out) stack of characters.
Constructor Summary | |
---|---|
Stack()
|
Method Summary | |
---|---|
abstract Iterator |
iterator()
Returns an iterator of the values on this stack. |
abstract char |
pop()
Removes the value at the top of this stack and returns that value as the value of this function. |
abstract void |
push(char value)
Pushes a value onto the top of this stack. |
abstract int |
size()
Returns the number of values on this stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Stack()
Method Detail |
---|
public abstract void push(char value)
public abstract char pop() throws java.util.NoSuchElementException
java.util.NoSuchElementException
public abstract int size()
public abstract Iterator iterator()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |