public void remove(int amount){
  int size=stack.size();
  for (int i=size - 1; i > size - 1 - amount; i--) {
    popWithMessage(i);
  }
}

public void remove ( int amount ) { int size = stack . size ( ) ; for ( int i = size - 1 ; i > size - 1 - amount ; i -- ) { popWithMessage ( i ) ; } }
remove amount elements from the operand stack , without using pop . for example after a method invocation
