Here you can find the source of getFilename(String filePath)
Parameter | Description |
---|---|
filePath | a parameter |
public static String getFilename(String filePath)
//package com.java2s; import java.io.File; public class Main { /**/*from w w w.ja v a 2 s . c o m*/ * @param filePath */ public static String getFilename(String filePath) { File f = new File(filePath); return f.getName(); } }