StringUtils經常使用工具方法

如下是本身在開發中,比較經常使用的方法,並且能夠避免普通字符串方法的null異常 一、StringUtils.isEmpty(str):校驗null和"" ---不進行trim操做數組 StringUtils.isEmpty(null); //true StringUtils.isEmpty("");//true StringUtils.isEmpty(" ");//false 二、String
相關文章
相關標籤/搜索