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 {
    /**
     * check if an EditText is empty, and returns a boolean
     * @param editTexts
     * @return
     */
    public static boolean isEmptyMultiEditText(EditText... editTexts) {
        for (EditText editText : editTexts) {
            if (editText.getText().toString().trim().length() == 0) {
                return true;
            }
        }
        return false;
    }
}