public boolean hasFileExtension(String extension){
  for (  String ext : fileExtensions) {
    if (ext.equalsIgnoreCase(extension)) {
      return true;
    }
  }
  return false;
}

public boolean hasFileExtension ( String extension ) { for ( String ext : fileExtensions ) { if ( ext . equalsIgnoreCase ( extension ) ) { return true ; } } return false ; }
checks if the fileformat ' s file extension is equal to the specified file extension . the file extensions are compared ignoring upper / lower - case differences .
