Looking to verify that there's no case-sensitive methods for processing file/path references.
This is for a use like looking up a file with a ".pdf" and/or ".PDF" extension in the directory without knowing whether it is upper- or lower-case.
you can use external jar like apache-commons , and read file without caring of extension type or case sensitivity
import org.apache.commons.io.FilenameUtils; String fileNameWithOutExt = FilenameUtils.removeExtension(fileNameWithExt);
There also other ways will help you there :How to get the filename without the extension in Java?