Here you can find the source of isFileExists(String filename)
public static boolean isFileExists(String filename)
//package com.java2s; import java.io.File; public class Main { public static boolean isFileExists(String filename) { File file = new File(filename); return file.exists(); }/*from ww w .j a v a 2 s . c o m*/ }