Here you can find the source of isFileExists(Path file)
public static boolean isFileExists(Path file)
//package com.java2s; //License from project: Open Source License import java.nio.file.Files; import java.nio.file.Path; public class Main { public static boolean isFileExists(Path file) { return Files.exists(file) && Files.isRegularFile(file); }// w w w . j a v a 2 s . c o m }