Question
Problem 1. A palindrome is a sequence of characters that reads the same backward as forward. For example, each of the following five-digit integers is
Problem 1. A palindrome is a sequence of characters that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 45554 and 11611. Write an application that reads in a five-digit integer and determines whether it is a palindrome. If the number is not five digits long, display an error message and allow the user to enter a new value.
Problem 2. Modify the program to determine whether a seven-digit number is a palindrome. Before modifying, rename the files to Palindrome2.java and Palindrome2Test.java as file names.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started