Java String Empty emptyString(String str)

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

Description

empty String

License

Open Source License

Declaration

public static boolean emptyString(String str) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean emptyString(String str) {
        return str == null || str.trim().length() == 0;
    }//www .  j a v  a  2  s.  c o  m
}

Related

  1. emptyString(final String a, final String defaultString)
  2. emptyString(final String string)
  3. emptyString(Object s)
  4. emptyString(String s)
  5. emptyString(String s)
  6. emptyString(String str)
  7. emptyString2Null(String stringValue)
  8. emptyStringIfNull(String s)
  9. emptyStringIfNull(String string)