public void fileNotFound(File f){
  if (!recentFiles.contains(f)) {
    throw new IllegalStateException("Well no wonder it wasn't found, its not in the list.");
  }
 else {
    recentFiles.remove(f);
  }
}

public void fileNotFound ( File f ) { if ( ! recentFiles . contains ( f ) ) { throw new IllegalStateException ( "Well no wonder it wasn't found, its not in the list." ) ; } else { recentFiles . remove ( f ) ; } }
call to remove a file from the list .
