Java tutorial
//package com.java2s; import android.text.TextUtils; import android.widget.EditText; public class Main { public static boolean isEmptys(EditText... editTexts) { for (EditText ed : editTexts) { String str = ed.getText().toString().trim(); if (TextUtils.isEmpty(str)) { return true; } } return false; } }