Java program to check whether a given number is palindrome or not