判断字符串不为空

private Boolean hasLength(String str)
{
return str != null && !"".equals(str.trim());
}

猜你喜欢

转载自www.cnblogs.com/Sly-Mi/p/11183034.html