Java StringUtil字符串工具类源码

package com.util;
public class StringUtil {
    public static boolean isNullOrEmpty(String str){
        if(str==null||str.equals("")){
            return true;
        }
        return false;
    }
    public static boolean IsNullOrEmptyOrWhiteSpace(String str){
        if(str==null||str.trim().equals("")){
            return true;
        }
        return false;
    }
}
发布了34 篇原创文章 · 获赞 1 · 访问量 1945

猜你喜欢

转载自blog.csdn.net/qq_38974638/article/details/105019424