My Java code is here:
import java.util.Scanner;
public class task2 {
public static void main(String args[]) {
System.out.print(\"Input a 3 digit int
The problem is that in the course of processing the value of x is being changed from what was originally input - it always ends up as 0.
So, you have to preserve the input value, like so:
Scanner scan = new Scanner(System.in);
int original = scan.nextInt();
int x = original;
and then use the original value for the final comparison, like so:
if (original == isPalindrome){