Android String Empty Check isNullOrEmpty(String s)

Here you can find the source of isNullOrEmpty(String s)

Description

is Null Or Empty

Declaration

public static boolean isNullOrEmpty(String s) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isNullOrEmpty(String s) {
        return s == null || s.length() == 0;
    }//from   ww  w  .  j  a  v a 2s. co m
}

Related

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