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) { File temp = new File(path); return temp.exists(); }//w ww . ja v a 2s . com }