How to get File Extension in Java?
In this Example we are going to learn how to get File extension in Java
Example 1:
import org.apache.commons.io.FilenameUtils; |
Output
Extension is: txt |
Example 2:
|
Output
File Extension is: txt |