public static boolean isFile(String path){
  File f=new File(path);
  return f.isFile();
}

public static boolean isFile ( String path ) { File f = new File ( path ) ; return f . isFile ( ) ; }
checks if the given path is a file
