Introduction
Here is the source code for Main.java
Source
//package com.java2s;
import java.io.File;
public class Main {
public static boolean fileExists(String s) {
File file = new File(s);
boolean flag;
if (file.isFile() && file.exists())
flag = true;
else
flag = false;
return flag;
}
}