1 import java.util.Scanner; 2 public class Palindrome { 3 public static void main(String[] args){ 4 int a; 5 Scanner input = new Scanner(System.in); 6 System.out.println("Enter a three-dight integer: "); 7 a = input.nextInt(); 8 if((a/100)==(a%100%10)){ 9 System.out.println(a + " is a palindrome"); 10 } 11 else System.out.println(a + " is not a palindrome"); 12 } 13 }