Double dou=conveyorOverspeedService.getLineMan(map);
conveyorOverspeed.setLine(dou);
public void setLine(double line) {
this.line = line;
} 提示错误The method setLine(double) in the type ConveyorOverspeed is not applicable for
the arguments (Double)
调试欢乐多
java.lang.Double
The Double class wraps a value of the primitive type double in an object. An object of type Double contains a single field whose type is double. In addition, this class provides several methods for converting a double to a String and a String to a double, as well as other constants and methods useful when dealing with a double. Author:
Lee Boynton
Arthur van Hoff
Since:
JDK1.0
@version
1.82, 01/23/03难道和这个不一样吗
private double line;
return (Integer)executeQueryForObject("deptDailyJob_nextSeq", deptDailyJob);
} Type mismatch: cannot convert from Integer to int
以前用的是jdk1.5
现在换成1.4了
conveyorOverspeed.setLine(dou.doubleValue());
比如Integer对象调用intValue()方法得到对应的int值