Detecting Palindromes

An integer is called a palindrome if its digits can be reversed without changing its value. For example, $15351$, and $7227$ are both palindromes, while $12345$ is not. Write a class called PalindromeDetector whose main method prompts the user for an integer, and then tells the user whether or not the entered integer is a palindrome.