/**
* string 转换int
*
* @param strInt
* @return
*/
public int intConverStr(String strInt) {
try {
return Integer.parseInt(strInt);
} catch (NumberFormatException e) {
logger.error("string conver int failure", e);
}
return 0;
}
/**
* int 转换 string
*
* @param i
* @return
*/
public String intConverStr(int i) {
String sInt = "";
try {
sInt = String.valueOf(i);
} catch (Exception e) {
logger.error("int conver string failure", e);
}
return sInt;
}