/*转化成数值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的全部内容,更多相关java内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复