For this Question: Given a number N, you need to check whether the given number is Armstrong number or not. Now what is Armstrong number let us see below:
<b>A number is said to be Armstrong if it is equal to sum of cube of its digits. </b>User task:
Since this is a functional problem you don't have to worry about the input. You just have to complete the function <b>isArmstrong()</b> which contains N as a parameter.

Constraints:
1 <= N <= 10^4You need to return "true" if the given number is an Armstrong number otherwise "false"Sample Input 1:
1

Sample Output 1:
true

Sample Input 2:
147

Sample Output 2:
false

Sample Input 3:
371

Sample Output 3:
true
, I have written this Solution Code: static boolean isArmstrong(int N)
    {
        int num = N;
        int sum = 0;
        while(N > 0)
        {
            int digit = N%10;
            sum += digit*digit*digit;
            N  = N/10;
        }
       if(num == sum)
         return true;
         else return false;
    }, In this Programming Language: Java, Now tell me if this Code is compilable or not?