Skip to content

Commit 07b4672

Browse files
Fix: remove main method and fix formatting
1 parent 8fbf7f1 commit 07b4672

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/com/thealgorithms/maths/NeonNumber.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
public class NeonNumber {
44

5+
private NeonNumber(){
6+
}
57
/**
68
* Check if a number is Neon Number.
79
* A neon number is a number where a sum of digits of its square equals the number itself.
@@ -12,6 +14,7 @@ public class NeonNumber {
1214
* @return true if neon number, else --> false
1315
*/
1416

17+
1518
public static boolean isNeon(int number)
1619
{
1720
int square = number*number;

0 commit comments

Comments
 (0)