资讯专栏INFORMATION COLUMN

Android判断String是否为空

newsning / 420人阅读

判断字符串是否为空:
public class StrUtils {
    public static boolean isEmpty(String str){
        if(str==null||"".equals(str)){
            return true;
        }
        return false;
    }
}

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/65149.html

相关文章

发表评论

0条评论

最新活动
阅读需要支付1元查看
<