Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.text.TextUtils;

public class Main {
    /**
     * isStringEmpty
     * <p>
     * Check if the given string is empty
     * 
     * @return return true if the string is null or len-of-zero
     */
    public static boolean isStringEmpty(String str) {
        return (str == null || TextUtils.isEmpty(str));
    }
}