public class MainClass {
public static void main(String[] argv) {
float x = 1.123F;
System.out.println(x < Float.NaN);
System.out.println(x <= Float.NaN);
System.out.println(x == Float.NaN);
System.out.println(x > Float.NaN);
System.out.println(x >= Float.NaN);
System.out.println(Float.NaN == Float.NaN);
System.out.println(Float.NaN != Float.NaN);
}
}
|