code: public boolean accept(File file) {
          if (caseSensitive) {
              return file.getName().endsWith(string0);
          } else {
              return file.getName().toLowerCase().endsWith(string0.toLowerCase());
          }
      }
docs: Accepts a File if its filename endsWith a specific string.
  @param file The file to match
  @return True if the File endsWith the specific string, otherwise false