检查字符串是否为空或非空
如何检查字符串是否为空或非空?
public void doStuff(String str){ if (str != null && str != "**here I want to check the 'str' is empty or not**") { /* handle empty string */ } /* ... */}
小唯快跑啊
慕沐林林
相关分类