All pastes #171456 Raw Edit

Untitled

public text v1 · immutable
·published 2006-09-15 12:36 UTC
rendered paste body
public class ArrayStack <E>{
public void push (E e){
if (size() == theStack.length)
grow ();
theStack [++ top]=e;
}
public E peek(){
return theStack[top];
}
public void pop (){
top --;
}
private E [] theStack;
private int top;
...
}