(1)把double先转化成int类型
Double reseve3=Double.parseDouble(bddet[0].getReserve3());
int b=reseve3.intValue();
(2)再把int类型转化为Integer类型
Integer rentCount=Integer.valueOf(b);
double 类型转化为Integer
转载于:https://www.cnblogs.com/achengmu/p/10081569.html
最后
以上就是迷路春天最近收集整理的关于double 类型转化为Integer的全部内容,更多相关double内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复