Here you can find the source of existFile(String folder)
public static boolean existFile(String folder)
//package com.java2s; import java.io.File; public class Main { public static boolean existFile(String folder) { File file = new File(folder); if (file.isDirectory()) { return true; } else {/*ww w .j a v a2 s . c o m*/ return false; } } }