public static boolean exists(String filepath){
  File f=new File(filepath);
  if (f.exists()) {
    return true;
  }
  return false;
}

public static boolean exists ( String filepath ) { File f = new File ( filepath ) ; if ( f . exists ( ) ) { return true ; } return false ; }
check if a file exists .
