?? hxexstringutils.java
字號:
package cn.hxex.exam.util;
import org.apache.commons.lang.StringUtils;
import cn.hxex.exam.Globals;
public class HxexStringUtils
{
public static boolean isEmpty( String str )
{
return str==null || str.length()==0;
}
public static String[] splitString( String str )
{
return HxexStringUtils.splitString( str, Globals.DEFAULT_DELIM );
}
public static String[] splitString( String str, String delim )
{
if( HxexStringUtils.isEmpty( str ) )
return null;
if( HxexStringUtils.isEmpty( delim ) )
delim = Globals.DEFAULT_DELIM;
return str.split( delim );
}
public static boolean contains( String[] strs, String str )
{
if( strs==null || strs.length==0 )
return false;
if( HxexStringUtils.isEmpty( str ) )
return false;
for( String s : strs )
{
if( str.equals( s ) )
return true;
}
return false;
}
public static String substringBetween( String str, String open, String close )
{
return StringUtils.substringBetween( str, open, close );
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -