Use the reverse method to implement ispalindrome a number


**6.3 (Palindrome integer) Write the methods with the following headers

// Return the reversal of an integer, i.e., reverse(456) returns 654

public static int reverse(int number)

// Return true if number is a palindrome

public static boolean isPalindrome(int number)

Use the reverse method to implement isPalindrome. A number is a palin- drome if its reversal is the same as itself. Write a test program that prompts the user to enter an integer and reports whether the integer is a palindrome.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Use the reverse method to implement ispalindrome a number
Reference No:- TGS01466550

Expected delivery within 24 Hours