Is it the clearest way to instantiate a File and get the filename?
String filePath = "/home/data/image.jpg "; String fileName = new File(path).getName();
Recommended Posts