public static boolean verifyFileExistence(String path){
  File file=new File(path);
  return file.exists() && file.isFile();
}

public static boolean verifyFileExistence ( String path ) { File file = new File ( path ) ; return file . exists ( ) && file . isFile ( ) ; }
method used to check the file existence , for test purpose .
