Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

problem in java

$
0
0
hi , I have a issue that has stumped me. Now.. I am trying to solve this qustion but i can not do it
so pls help

. Write a program to determine whether an integer number input by a user is a palindrome or not. A number is a palindrome if its reversal is the same as itself. For example, 121 is a palindrome, 878 is a palindrome, and 667 is not a palindrome since the reversal of this number is 766. The following methods will be used:
// Return the reversal of an integer, i.e. reverse(456) returns 654
public static int reverse(int number)
//Return true if the number is palindrome
public static Boolean isPalindrome(int number)

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>