Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.widget.EditText;

public class Main {
    public static boolean isEmptyTextEditText(EditText editText) {
        boolean isEmpty = true;

        if (editText.getText() != null && editText.getText().toString() != null
                && !"".equals(editText.getText().toString().trim())) {
            isEmpty = false;
        }

        return isEmpty;
    }
}