private LinkedList list =new LinkedList();
/*
* 模拟进栈方法
*
* */
public void in(Object obj){
list.addLast(obj);
}
/*
* 出栈
* */
public Object out(){
return list.removeLast();
}
/*
* 判断是否为空
* */
public boolean isEmpty(){
return list.isEmpty();
}
/*
* 模拟进栈方法
*
* */
public void in(Object obj){
list.addLast(obj);
}
/*
* 出栈
* */
public Object out(){
return list.removeLast();
}
/*
* 判断是否为空
* */
public boolean isEmpty(){
return list.isEmpty();
}