
Untitled
By: a guest on
May 8th, 2012 | syntax:
Java | size: 0.24 KB | hits: 12 | expires: Never
public boolean isFoundStack(Record record){
boolean found=true;
while (!this.stackOne.isEmpty() && !this.stackOne.top().equals(record)){
this.stackTwo.push(this.stackOne.pop());
found=false;
}
return found;
}