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(); }// w w w . jav a 2 s .c o m }