Here you can find the source of getFileName(File file)
public static String getFileName(File file)
//package com.java2s; import java.io.File; public class Main { public static String getFileName(File file) { return file.getName(); }//w ww.j a va2s . c o m }