@@ -0,0 +1,626 @@
+public class IsPalindromeNumber %7B%0A    public boolean isPalindrome(int x) %7B%0A        int n = x;%0A        int digit = 0;%0A        int rev = 0;%0A        while (x %3E 0) %7B%0A            digit = x %25 10;%0A            rev = rev * 10 + digit;%0A            x = x / 10;%0A        %7D%0A        return n == rev;%0A    %7D%0A    %0A    public static void main (String%5B%5D args) %7B%0A        IsPalindromeNumber test = new IsPalindromeNumber ();%0A        System.out.println (test.isPalindrome (21));%0A        System.out.println (test.isPalindrome (1221));%0A        System.out.println (test.isPalindrome (12121));%0A        System.out.println (test.isPalindrome (0));%0A    %7D%0A%7D

Check if number is a palindrome