Does anyone have any feedback on how to write a program that inputs a 5-digit integer from the keyboard and prints if the input number is a palindrome or not.
This is the program I wrote:
public static void main(String args)
int palindrome number =0;
int n1 = Integer.parseInt(number);
Scanner input = new Scanner(System.in);
int given = input.nextInt();
If(number >="Is a palindrome number");
If (number >="Is not a palindrome number");
System.out.println(" number + palindrome");
The compilation left me with this result:'
';' expected')' line 6
')' expected line 10
'else' without 'if' line 12
I have tried everything to make this program compile. I will keep at it! While someone gives me a hand.