检查字符串是否不为空且不为空Use org.apache.commons.lang.StringUtils
2022-08-31 04:20:31
如何检查字符串是否不为空且不为空?
public void doStuff(String str)
{
if (str != null && str != "**here I want to check the 'str' is empty or not**")
{
/* handle empty string */
}
/* ... */
}