FileDocCategorySizeDatePackage
Stacks.javaAPI DocExample204Fri Nov 03 11:00:18 GMT 2006None

Stacks

public class Stacks extends Object

Fields Summary
Constructors Summary
Methods Summary
public static Stackreverse(Stack in)

	Stack<E> out = new ArrayStack<E>();
        while (!in.empty()) {
	    E elt = in.pop();
	    out.push(elt);
	}
	return out;