How to check if a number is palindrome in Java? : <p>I am new in Java and I need to complete this program to check if an integer is palindrome. Please help.</p>

<pre><code>public static void main(String args[]){

    System.out.println("Please enter an integer : ");
    int integer = new Scanner(System.in).nextInt();

    if(isPalindrome(integer)){
        System.out.println(integer + " is a palindrome");
    }else{
        System.out.println(integer + " is not a palindrome");
    }       

}
</code></pre>
