/*转化成数值Integer*/
public static int switchInteger(Object obj) {
int res = 0;
if (null != obj) {
double result = Double.parseDouble(obj.toString()) ;
res = (int)result;
}
return res;
}
java 转化成数值Integer
最新推荐文章于 2023-05-14 12:37:23 发布