Here you can find the source of isFileExist(String filePath)
public static boolean isFileExist(String filePath)
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { public static boolean isFileExist(String filePath) { return new File(filePath).exists(); }//from ww w .j av a2 s .c om }