Bootstrap

java 中double型转化成int型

double d = 12.0;
int i = (new Double(d)).intValue();

 

;