Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.text.TextUtils;
import android.widget.EditText;

public class Main {
    public static boolean isNotNull(EditText txt) {
        if (txt == null) {
            return false;
        }

        String v = txt.getText().toString().trim();
        return !TextUtils.isEmpty(v);

    }
}