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