Here you can find the source of fileExists(Path path)
public static boolean fileExists(Path path)
//package com.java2s; //License from project: Apache License import java.nio.file.Path; public class Main { public static boolean fileExists(Path path) { return path.toFile().exists(); }//from ww w. j a v a2s .co m }