62,623
社区成员
发帖
与我相关
我的任务
分享
public class T5 {
public static void main(String[] args) {
double a=1.23;
Double test=new Double(); //这个double好像不能这么用吧?
int aa=test.intValue(d1); //intValue能带参数么?
System.out.println(aa); //输出肯定错误.呵呵
}
}
public class T5 {
public static void main(String[] args) {
double a=1.23;
Double test=new Double(); //首先,Double没有无参数构造方法!
int aa=test.intValue(d1); //这里,不知道d1是哪里来的,必须是错误的!
System.out.println(aa);
}
}
double a=1.23;
Double test=new Double(a);
int aa=test.intValue();
System.out.println(aa);
double a=1.23;
Double test=new Double(a);
int aa=test.intValue();