Android String Empty Check isNullOrEmpty(String str)

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

Description

is Null Or Empty

Declaration

public static boolean isNullOrEmpty(String str) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean isNullOrEmpty(String str) {
        return str == null || str.trim().length() == 0;
    }/*from  www. jav  a 2s  . c o  m*/
}

Related

  1. isBlank(String str)
  2. isBlank(String str)
  3. isNotBlank(String str)
  4. isBlank(String text)
  5. isEmpty(String input)
  6. isEmpty(final String value)
  7. isEmpty(String s)
  8. isEmpty(String value)
  9. isNotEmpty(String value)