public static boolean checkFile(final File f){
  return f.exists() && f.isFile() && f.canRead();
}

public static boolean checkFile ( final File f ) { return f . exists ( ) && f . isFile ( ) && f . canRead ( ) ; }
checks to see if the given file exists , is a file , and can be read .
