首页>代码>SSM(Spring+Spring MVC+Mybatis)开发简约漂亮的java开源博客管理系统,其中前台后台功能完整。>/Blog-master/src/main/java/com/liu/Utils/StringUtil.java
package com.liu.Utils; import java.util.ArrayList; import java.util.List; public class StringUtil { /** * @Title: isEmpty * @Description: 判断是否为空 */ public static boolean isEmpty(String str){ if(str==null||"".equals(str.trim())) { return true; }else{ return false; } } /** * @Title: isNotEmpty * @Description:判断是否部位空 */ public static boolean isNotEmpty(String str){ if((str!=null)&&!("".equals(str.trim()))){ return true; } else{ return false; } } /** * @Title: formatLike * @Description:格式化模糊查询 */ public static String formatLike(String str){ if(isNotEmpty(str)){ return "%"+str+"%"; }else { return null; } } public static List<String>filterWhite(List<String> list){ List<String> resultList=new ArrayList<String>(); for(String l:list) { if(isNotEmpty(l)) { resultList.add(l); } } return resultList; } }
最近下载更多
xiaopengzep LV1
3月24日
问耳朵 LV2
2023年12月14日
海棠花瘦 LV9
2023年6月12日
yangbulx LV3
2023年6月7日
微信网友_6495054193971200 LV2
2023年5月28日
邬松桥 LV11
2022年11月16日
LJLljl002 LV5
2022年9月18日
yymmdm LV6
2022年8月10日
wppppp LV3
2022年4月23日
微信网友_5916966536499200 LV2
2022年4月15日
最近浏览更多
xiaopengzep LV1
3月24日
zhanxy LV2
3月11日
minjing123 LV8
1月4日
lilong007 LV20
2023年12月30日
WBelong LV7
2023年12月27日
问耳朵 LV2
2023年12月14日
空中飞尘 LV13
2023年12月13日
shuangfu LV24
2023年12月2日
limenghaoqwer LV2
2023年11月27日
abandan LV4
2023年11月6日