Java program to check Neon number

In this java program, we are going to check whether a given number is Neon number or not? A number is a Neon number, if sum of the digits of square of a number is equal to the number itself.
Submitted by IncludeHelp, on October 29, 2017

Given a number, and we have to check whether it is Neon number or not using Java program.

Neon Number

A number is a Neon number, if sum of the digits of square of a number is equal to the number itself.

Example:

Number 9 is a Neon number, because 9 is equal to sum of the digits of square of number (9x9 = 81 = 8+1 = 9).