Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.text.TextUtils;

import java.io.File;

public class Main {

    public static boolean fileExists(String path) {
        boolean exists = false;
        if (!TextUtils.isEmpty(path)) {
            File file = new File(path);
            exists = file.exists() && file.isFile();
        }
        return exists;
    }
}