Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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;}
Source by workat.tech #
 
PREVIOUS NEXT
Tagged: #integer #palindrome #java
ADD COMMENT
Topic
Name
3+1 =