昨天才意识到这两个的存在。 Blank Empty ...
分类:
其他好文 时间:
2017-02-23 13:39:00
阅读次数:
353
package com.shob.tt.single; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class StringUtil { /** *... ...
分类:
编程语言 时间:
2017-02-19 21:32:12
阅读次数:
219
package com.vcredit.ddcash.monitor.controller; import com.vcredit.ddcash.monitor.model.dto.Response;import freemarker.template.utility.StringUtil;impo ...
分类:
其他好文 时间:
2017-01-11 15:44:59
阅读次数:
467
当购物车东西很多时,既不能排序,也无法管理,做了一个小工具,解析网页,把所有的项目提取出来。 把网页源码粘贴进去即可: 解析结果: 其实,解析代码只有一句: MatchCollection mas = StringUtil.Matches(s, "<img alt=\"(*aa*)\" clstag ...
分类:
其他好文 时间:
2017-01-10 21:35:51
阅读次数:
315
public class StringUtil { public static boolean isEmpty(String str){ if(str==null|| str.trim().length()==0){ return true; } return false; } public sta ...
分类:
其他好文 时间:
2016-11-11 14:35:17
阅读次数:
161
简单、优雅、有序才是真的美 -- 王昕 废话不多说,直接上代码。 验证类Validator 主要是空验证、数字、格式验证 调用的例子: 数组工具类,ArrayUtil 主要的操作是: 源代码实现分析1、去除重复值,如 源代码实现分析2、尾部增加项,比如: 3、JSONArray、Object和Arr ...
分类:
其他好文 时间:
2016-11-11 14:33:02
阅读次数:
184
1、字符串达到多长才截取
2、将指定的对象转换为String类型
3、转换字符,用于替换提交的数据中存在非法数据:"'"
4、对标题""转换为中文“”采用对应转换
5、替换HTML标记
6、标题中含有特殊字符替换 如:●▲@◎※ 主要在标题中使用
7、替换所有英文字母
8、替换所有数字
9、将/n转换成为回车 ,空格转为
10、清除所有
11、清楚WOrd垃圾代...
分类:
其他好文 时间:
2016-07-22 19:15:49
阅读次数:
296
/**
* 字符串工具类,提供一些字符串相关的便捷方法
*/
public class StringUtil { private StringUtil() {
throw new AssertionError();
} /**
* is null or its length is 0 or it is made by space
* <p/...
分类:
移动开发 时间:
2016-07-15 21:22:10
阅读次数:
217
StringUtils用法+StringUtils详细介绍博文来源:http://yijianfengvip.blog.163.com/blog/static/175273432201212221935832/public static void StringUtil(){ //null 和 ""操 ...
分类:
其他好文 时间:
2016-07-13 15:37:11
阅读次数:
154
1.判断某字符串是否为空,为空的标准是str==null或str.length()==0(StringUtils.isEmpty(" ") = false //注意在StringUtils中空格作非空处理) 2.判断某字符串是否非空,等于!isEmpty(String str)(StringUtil ...
分类:
其他好文 时间:
2016-07-05 13:54:51
阅读次数:
310