Introduction
Here is the source code for Main.java
Source
public class Main {
public static void main(String[] args) {
Float f1 = new Float(-1.0 / 0.0);
Float f2 = new Float(0.0 / 0.0);
System.out.println(f1 + " = " + Float.isNaN(f1));
System.out.println(f2 + " = " + Float.isNaN(f2));
}
}