Here you can find the source of isFileExists(String filePath)
public static boolean isFileExists(String filePath)
//package com.java2s; public class Main { public static boolean isFileExists(String filePath) { java.io.File myFile = new java.io.File(filePath); if (myFile.exists()) { return true; } else {//from www . ja va2s . c om return false; } } }