Android String Empty Check isEmpty(String string)

Here you can find the source of isEmpty(String string)

Description

is Empty

Declaration

public static boolean isEmpty(String string) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean isEmpty(String string) {
        if (string == null || string.trim().equals("")) {
            return true;
        } else {/* ww w  .ja  va 2 s . c o  m*/
            return false;
        }
    }
}

Related

  1. nullToEmpty(String url)
  2. isEmpty(String s)
  3. isEmpty(String s)
  4. isEmpty(String str)
  5. trimToEmpty(String str)
  6. isEmptyString(String str)
  7. isEmptyString(String str)
  8. isNullOrEmpty(CharSequence any)
  9. isNullOrEmpty(String s)