Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

public class Main {
    public static boolean checkString(String s) {

        boolean isEmpty;

        try {
            isEmpty = s.isEmpty();
        } catch (NullPointerException ex) {
            Log.e("checkString", "String is NULL !!");
            return false;
        }

        return !isEmpty;
    }
}