📄 paramutil.java
字号:
/*
* 创建日期 2006-2-25
*
*/
package com.runwit.common.util;
/**
* @date 2006-2-25 @author user
*
*/
public class ParamUtil {
public static String getParameter(String s) {
return s == null ? "" : s;
}
public static int stringValue(String s, int defaultRef) {
try {
return Integer.parseInt(s);
}catch(Exception ex) {
return defaultRef;
}
}
public static int stringValue(String s) {
return ParamUtil.stringValue(s, 0);
}
public static String[] getParameter(String s[]){
return s == null ? new String[0]:s;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -