Here you can find the source of fileExists(String path)
public static boolean fileExists(String path)
//package com.java2s; import java.io.File; public class Main { public static boolean fileExists(String path) { return new File(path).exists(); }/*www .j a v a 2 s .c om*/ }