Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.io.File;

import android.text.TextUtils;

public class Main {
    public static boolean doesExisted(String filepath) {
        if (TextUtils.isEmpty(filepath)) {
            return false;
        }

        return doesExisted(new File(filepath));
    }

    public static boolean doesExisted(File file) {
        return ((file != null) && (file.exists()));
    }
}