Entry kill(){
  Entry entry;
  for (int i=entries.size() - 1; i >= 0; i--) {
    entry=entries.get(i);
    if (!entry.dead) {
      entry.dead=true;
      return entry;
    }
  }
  throw new IllegalStateException("There is no entry to kill");
}

Entry kill ( ) { Entry entry ; for ( int i = entries . size ( ) - 1 ; i >= 0 ; i -- ) { entry = entries . get ( i ) ; if ( ! entry . dead ) { entry . dead = true ; return entry ; } } throw new IllegalStateException ( "There is no entry to kill" ) ; }
kill the latest alive entry
