Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.io.File;

import android.text.TextUtils;

public class Main {

    public static boolean isExistFile(String fileName) {
        if (TextUtils.isEmpty(fileName)) {
            return false;
        }

        File file = new File(fileName);
        if (file.exists() && file.isFile()) {
            return true;
        }

        return false;
    }
}