Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: Java  |  size: 0.24 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public boolean isFoundStack(Record record){
  2.                
  3.                 boolean found=true;
  4.                 while (!this.stackOne.isEmpty() && !this.stackOne.top().equals(record)){
  5.                         this.stackTwo.push(this.stackOne.pop());
  6.                         found=false;
  7.                 }
  8.                
  9.                
  10.                 return found;
  11.         }