StringUtils java string Null and empty string comparision code example
Example: check if a string is empty java
if (myString == null || myString.equals(""))
throw new IllegalArgumentException("empty string");
if (myString == null || myString.equals(""))
throw new IllegalArgumentException("empty string");