FileDocCategorySizeDatePackage
Stacks.javaAPI DocExample277Fri 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 out = new ArrayStack();
        while (!in.empty()) {
	    Object elt = in.pop();
	    out.push(elt);  // unchecked call
	}
	return out;  // unchecked conversion