Java tutorial
//package com.java2s; //License from project: Apache License import android.support.annotation.Nullable; import android.text.TextUtils; import android.widget.EditText; public class Main { public static boolean checkFieldFull(EditText... editTexts) { for (EditText editText : editTexts) { if (!TextUtils.isEmpty(editText.getText())) { return true; } } return false; } public static boolean isEmpty(@Nullable CharSequence str) { if (str == null || str.length() == 0) { return true; } else { return false; } } }