1、错误一
int i;
System.out.println(i); 错误原因:The local variable i may not have been initialized 变量i未被初始化2、//double-double结果不准确 整数-double结果准确
double c=3.4; double d=4.4; System.out.println(d-c); 输出结果:1.0000000000000004本文共 268 字,大约阅读时间需要 1 分钟。
1、错误一
int i;
System.out.println(i); 错误原因:The local variable i may not have been initialized 变量i未被初始化2、//double-double结果不准确 整数-double结果准确
double c=3.4; double d=4.4; System.out.println(d-c); 输出结果:1.0000000000000004转载于:https://www.cnblogs.com/lxiaoxuan/p/11106856.html