特殊的線性表-----棧---棧的插入和刪除

入棧:棧的插入運算 出棧:棧的刪除運算 棧:先進後出  後進先出 下面是入棧和出棧的代碼: public class 棧的出棧和入棧 implements Stack { String [] arr=new String[5]; int top=-1; public void push(Object obj) throws Exception { if(top>=arr.length-1){ th
相關文章
相關標籤/搜索