Android String Empty Check isEmpty(String s)

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


is Empty


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
            flag = false;
        return Boolean.valueOf(flag);


  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)