Java求助错误处Double,MAX_VALUE,Double,MIN_VALUEpublic class DataRange {public static void main(String[] args) {System.out.printf("short \t数值范围:%d %d\n",Short.MAX_VALUE,Short.MIN_VALUE);System.out.printf("int \t数值范围:%d %d\n",I
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/11 09:27:54
Java求助错误处Double,MAX_VALUE,Double,MIN_VALUEpublic class DataRange {public static void main(String[] args) {System.out.printf("short \t数值范围:%d %d\n",Short.MAX_VALUE,Short.MIN_VALUE);System.out.printf("int \t数值范围:%d %d\n",I
Java求助错误处Double,MAX_VALUE,Double,MIN_VALUE
public class DataRange {
public static void main(String[] args) {
System.out.printf("short \t数值范围:%d %d\n",
Short.MAX_VALUE,Short.MIN_VALUE);
System.out.printf("int \t数值范围:%d %d\n",
Integer.MAX_VALUE,Integer.MIN_VALUE);
System.out.printf("long \t数值范围:%d %d",
Long.MAX_VALUE,Long.MIN_VALUE);
System.out.printf("byte \t数值范围:%d %d\n",
Byte.MAX_VALUE,Byte.MIN_VALUE);
System.out.printf("float \t数值范围:%e %e\n",
Float.MAX_VALUE,Float.MIN_VALUE);
System.out.printf("double \t数值范围:%e %e\n",
Double,MAX_VALUE,Double,MIN_VALUE);
}
}
最后写的double的数值范围最大与最小不知道为什么总是报错在 1.6上运行的我是
Java求助错误处Double,MAX_VALUE,Double,MIN_VALUEpublic class DataRange {public static void main(String[] args) {System.out.printf("short \t数值范围:%d %d\n",Short.MAX_VALUE,Short.MIN_VALUE);System.out.printf("int \t数值范围:%d %d\n",I
Double.MAX_VALUE,Double.MIN_VALUE
中间是“.”不是逗号