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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #integer #palindrome #java
ADD COMMENT
Topic
Name
1+5 =