使用到了工具类TextUtils,下面是已封装好的方法,直接调用即可
ublic class EmptyUtil {
public static boolean IsNotEmpty(String str){
if(!TextUtils.isEmpty(str)){
if(!"null".equals(str)){
return true;
}
}
return false;
}
}
使用到了工具类TextUtils,下面是已封装好的方法,直接调用即可
ublic class EmptyUtil {
public static boolean IsNotEmpty(String str){
if(!TextUtils.isEmpty(str)){
if(!"null".equals(str)){
return true;
}
}
return false;
}
}