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 isEditTextEmpty(EditText eText) {
        return eText != null && !isEmpty(eText.getText().toString());
    }

    public static boolean isEmpty(String str) {
        return str != null && !str.equals("");
    }
}