日期:2014-05-20 浏览次数:20710 次
package test; import java.util.ArrayList; import java.util.List; public class Stack { private List<Object> stackValue = new ArrayList<Object>(); public void pop(Object obj){ stackValue.add(obj); } public Object push(){ return stackValue.remove(0); } }