Android String Empty Check isEmpty(String s)

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

Description

is Empty

Declaration

public static Boolean isEmpty(String s) 

Method Source Code

//package com.java2s;

public class Main {
    public static Boolean isEmpty(String s) {
        boolean flag;
        if (s == null || s.length() == 0)
            flag = true;//from   ww  w.  j  av a2  s .co  m
        else
            flag = false;
        return Boolean.valueOf(flag);
    }
}

Related

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