Please finish the declaration of variable x in the bold line below so that the next line prints “false”.public class Reflexive {
public static void main(String[] args) throws Exception {
<typeX> x = <valueX>; System.out.println(x == x);
}
}
public static void main(String[] args) throws Exception {
<typeX> x = <valueX>; System.out.println(x == x);
}
}
Float.NaN = 0.0f/0.0f;
Double.NaN = 0.0d/0.0d;他们都代表NaN : not a number,非java认可的数字.
可以看做java用特殊数字来描述数字异常情况.
因为是用以描述异常情况咩,所以无法比较出true的结果.
是让他正常输出false,不是报错啊!
thanks!
return 随机数
}