public boolean fileExists(String url){
  File file=new File(url);
  return file.exists();
}

public boolean fileExists ( String url ) { File file = new File ( url ) ; return file . exists ( ) ; }
returns whether a file exists or not
