org.apache.commons.lang.StringUtils(用法学习)
1:检查空字符串:
StringUtils.isBlank(String str);
StringUtils.isNotBlank(String str);
2:缩写字符串
String str= "This is a test of the abbreviation of string method";
String ret = StringUtils.abbreviate(str,10);
此时ret = "This is ...";