首页>代码>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;
}
}
最近下载更多
lilitu LV6
2024年5月29日
xiaopengzep LV1
2024年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日
最近浏览更多
三秋桂子 LV1
2024年12月22日
krispeng LV15
2024年11月14日
it_star LV6
2024年7月18日
微信网友_7030143019094016 LV1
2024年6月9日
忧郁霸王龙
2024年6月6日
暂无贡献等级
lilitu LV6
2024年5月29日
xiaopengzep LV1
2024年3月24日
zhanxy LV2
2024年3月11日
minjing123 LV8
2024年1月4日
lilong007 LV23
2023年12月30日

