#进栈出

代码实现模拟进栈出栈

packagecom.loaderman.list;importjava.util.LinkedList;publicclassStack{privateLinkedListlist=newLinkedList();/**模拟进栈方法*/publicvoidin(Objectobj){list.addLast(obj)...