Write a program in Java programming language that checks whether a five-digit number entered by the user is a palindrome or not. Hint: A palindromic number is a number that remains the same when its digits are reversed.


Updated: Nov. 27, 2020 — Training Time: 2 minutes
Overseen by: Archangel Macsika
Topic: Generic - Java Programming

Difficulty: Easy.

Companies who previously asked this: -.

Objective: Write a program in Java programming language that checks whether a five-digit number entered by the user is a palindrome or not.
Hint: A palindromic number is a number that remains the same when its digits are reversed.

Input: A five digit number in palindrome format eg. 16461.

Expected Output: Result will vary depending on the user input.

Sikademy Solution

Was this training resource helpful?