Android String Empty Check isEmptyString(String str)

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

Description

is Empty String

License

Open Source License

Declaration

public static boolean isEmptyString(String str) 

Method Source Code

//package com.java2s;
/**/*  w ww  . j a  va  2s  . com*/
 * Copyright (c) 2012 The Wiseserc. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

public class Main {

    public static boolean isEmptyString(String str) {
        if (str == null || str.equals("")) {
            return true;
        }
        return false;
    }
}

Related

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