5 digit Palindrome

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:

import java.util.*;
 class Tester22
{
      public static void main(String args[])
      {
      int palindrome number =0;
            int n1 = Integer.parseInt(number);
            Scanner input = new Scanner(System.in);
            System.out.println("Please input a 5-digit number);
            int given = input.nextInt();
            If(number >="Is a palindrome number");
            else
            If (number >="Is not a palindrome number");
            System.out.println(" number + palindrome");
            System.out.println("number += not a 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.



Fred








201410-LO-Qu-021

Experts Exchange powers the
growth and success of technology
professionals worldwide.

Try for Free

30 day free trial. Cancel anytime.

Learn More about How It Works

Top Java Programming Language Solutions Need more help?
We have over 4 million solutions here.

See More Java Programming Language Solutions

Deeper Java Programming Language Learning Develop your expertise with tips, tricks and how to expert articles.

See More Java Programming Language Articles

Skill Training Video TutorialsExpand your tech skills quickly with five-minute, instructional videos.

See More Programming Videos

Experts Exchange powers the growth and success
of technology professionals worldwide.

  • Solve

    Experts Exchange is the tech professional’s trusted, on-demand resource for solving difficult problems, making informed decisions, and delivering excellent solutions.

  • Learn

    With unparalleled access to technical experts, verified real-world solutions, and diverse educational content, Experts Exchange enables personalized development of technology skills.

  • Network

    Experts Exchange gives you the professional exposure and valued relationships key to building the career you want.

Join the Network Today

See Plans and Pricing