+91-85006-22255
Write a program to find if the given number is palindrome. A palindrome number which when reversed will be the same as original.
class PalindromeNumber { public static void main(String s[]) { boolean palindrome = isPalindrome(1221); if(palindrome) System.out.println("1221 is a palindrome."); else System.out.println("1221 is not a palindrome."); } public static boolean isPalindrome(int number) { boolean result = false;
return result; } }
Topic: while Loop In Java
Read this topic Take test on this topic
Open In App