How to get file extension in Java
This article shows how to get the file extension of a file in Java. Topics Get file extension normal Get file extension strict Get file extension hardcode Apache Common IO – FilenameUtils Path: /path/foo.txt -> File Extension: txt Path: . -> File Extension: Path: .. -> File Extension: Path: /path/run.exe -> File Extension: exe Path: …