Here you can find the source of fileExists(String path)
public static Boolean fileExists(String path)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static Boolean fileExists(String path) { return new File(path).isFile(); }// ww w . j a va 2 s . c o m }