How to get file name in java code, example

 public static String getFileName(String filePath)
    {
        File f = new File(filePath);
        return f.getName();
    }

Comments

Recent Post

Recent Posts Widget

Popular posts from this blog

Capture image from webcam java code, examples

Shallow Copy Deep Copy Java example

Database Connection using NODE JS example