コード例 #1
0
ファイル: LLStack.java プロジェクト: zabbieru/web-crawler
 public void pop() { // pops the data on the top of the stack //topand pop
   if (theList.isEmpty()) {
     System.out.println("sorry but the stack is empty");
   } else {
     theList.deleteFirst();
   }
 }
コード例 #2
0
ファイル: linkStack.java プロジェクト: lokinell/apiTest
 // --------------------------------------------------------------
 public long pop() // take item from top of stack
     {
   return theList.deleteFirst();
 }