Android String Empty Check emptyOrNull(String str)

Here you can find the source of emptyOrNull(String str)

Description

empty Or Null

Declaration

public static boolean emptyOrNull(String str) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean emptyOrNull(String str) {
        return str == null || str.length() == 0;
    }/*w  ww.j a v a  2 s .  c o m*/

    public static boolean emptyOrNull(String... arrStr) {
        for (String str : arrStr) {
            if (emptyOrNull(str)) {
                return true;
            }
        }
        return false;
    }
}

Related

  1. isEmpty(String string)
  2. isEmptyString(String str)
  3. isEmptyString(String str)
  4. isNullOrEmpty(CharSequence any)
  5. isNullOrEmpty(String s)
  6. emptyOrNull(String... arrStr)
  7. isBlank(String str)
  8. isEmpty(String input)
  9. isNotNull(String str)