Here you can find the source of isFileExist(String path)
public static boolean isFileExist(String path)
//package com.java2s; import java.io.File; public class Main { public static boolean isFileExist(String path) { boolean exist = false; if (path != null) { File f = new File(path); exist = f.exists();//w w w .ja v a2 s. co m } return exist; } }