Here you can find the source of isFileExist(String filepath)
public static File isFileExist(String filepath)
//package com.java2s; import java.io.File; public class Main { public static File isFileExist(String filepath) { File mfile = new File(filepath); if (mfile.exists()) return mfile; else/* w w w . ja v a2 s. c o m*/ return null; } }