public int compare(File file1,File file2){
  String suffix1=FilenameUtils.getExtension(file1.getName());
  String suffix2=FilenameUtils.getExtension(file2.getName());
  return caseSensitivity.checkCompareTo(suffix1,suffix2);
}

public int compare ( File file1 , File file2 ) { String suffix1 = FilenameUtils . getExtension ( file1 . getName ( ) ) ; String suffix2 = FilenameUtils . getExtension ( file2 . getName ( ) ) ; return caseSensitivity . checkCompareTo ( suffix1 , suffix2 ) ; }
compare the extensions of two files the specified case sensitivity .
