Android判断String是否为空
文章目录
判断字符串是否为空:
public class StrUtils {
public static boolean isEmpty(String str){
if(str==null||"".equals(str)){
return true;
}
return false;
}
}
public class StrUtils {
public static boolean isEmpty(String str){
if(str==null||"".equals(str)){
return true;
}
return false;
}
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论