For this Question: Given a number N, you need to check whether the given number is <b>Palindrome</b> or not. A number is said to be Palindrome when it reads the same from backward as forward.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>isPalindrome()</b> which contains N as a parameter.

<b>Constraints:</b>
1 <= N <= 9999You need to return "True" is the number is palindrome otherwise "False".Sample Input:
5

Sample Output:
True

Sample Input:
121

Sample Output:
True, I have written this Solution Code: static void isPalindrome(int N)
	{
	    int digit = 0, sum = 0, temp = N;
	    
	    while(N > 0)
	    {
	        digit = N %10;
	        sum = sum*10 + digit;
	        N = N/10;
	    }
	    
	    if(sum == temp)
	    System.out.println("True");
	    else System.out.println("False");
	}, In this Programming Language: Java, Now tell me if this Code is compilable or not?