java.lang.Double isNaN()


public boolean isNaN()

Java Code Example :

This java example source code demonstrates the use of isNaN() method of Double class.  This method Returns true if this Double value is a Not-a-Number (NaN), false otherwise.

On this example we will evaluate numbers and check if the input is a number or not.

Sample Output :

Running the above example source code will give the following output

Suggested Reading List :

References :