gecko-dev/js/js2/java/JSStack.java
rogerl%netscape.com 8cf3d6ffe7 Latest changes
1999-05-07 22:07:22 +00:00

28 lines
354 B
Java

import java.util.Stack;
class JSStack {
Stack stack = new Stack();
void push(StackValue v)
{
stack.push(v);
}
boolean isEmpty()
{
return stack.isEmpty();
}
StackValue pop()
{
return (StackValue)stack.pop();
}
int size()
{
return stack.size();
}
}