有什么String的工具类好用的呢?(不要自己写的)

每次都要自己写一遍太不方便了。
img
希望能推荐一下好用的工具类可以一劳永逸

这个是你自己的逻辑,想办法简化或者封装。

hutool 的 StrUtil
或者自己封装一个就好了

public static getStr(Map map,String key){
  return StrUtil.isNotBlank(map.get(key)) ? map.get(key) : null;
}

stringbuffer类比较好用,string类中的方法需要靠stringbuffer类来实现的

这个差不多就够用了
img