Core Java
How to get the File extension in Java
In this tutorial, you will learn how to get the File extension of a File in Java. First, you will use the String methods. Next, you will learn how to use regular expressions. The last technique will show how to use the Commons IO library. Create a new project Follow Read more…