Utils
文章平均质量分 84
ittor
这个作者很懒,什么都没留下…
展开
-
其实不用重复造轮子[StringUtils][001]
一、判空(Empty checks)1。判断字符串是否为空(为NULL或者为"") public static boolean isEmpty(String str) { return str == null || str.length() == 0; } 2.相应的,有检验字符串不为空的 public static boole...原创 2010-11-08 23:16:55 · 109 阅读 · 0 评论 -
其实不用重复造轮子[StringUtils][002]
一、Substring1.包含空指针异常处理的subString,开始 public static String substring(String str, int start) { if (str == null) { return null; } // handle negatives, whic...原创 2010-11-09 13:20:15 · 140 阅读 · 0 评论