Answers for "find palindromes in java"

0

integer palindrome in java

public boolean isPalindrome(int x) {
        String str = Integer.toString(x);
        String reverse =  new StringBuilder(str).reverse().toString();
        return  str.equals(reverse)?true:false;
     }
Posted by: Guest on April-26-2021

Code answers related to "find palindromes in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language