Double d = Double.parseDouble(object.toString());
//转int
int intBalance = d==null ? 0 : d.intValue();
//转double
Double d = Double.parseDouble(object.toString());
double intBalance = d==null ? 0 : d;
Double d = Double.parseDouble(object.toString());
//转int
int intBalance = d==null ? 0 : d.intValue();
//转double
Double d = Double.parseDouble(object.toString());
double intBalance = d==null ? 0 : d;
//boolean delivery =(boolean)criteria.get("delivery"); 错误.object不能转化为boolean
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M