Question: 2. A palindrome integer is one that reads the same from left to right and from right to left. So, for instance: 121, 12321 and

 2. A palindrome integer is one that "reads the same" from

2. A palindrome integer is one that "reads the same" from left to right and from right to left. So, for instance: 121, 12321 and 737 are all palindrome integers. Write a Java program that prompts a user to enter a 3-digit positive integer and determines whether it is a palindrome. Include the output of testing your code on the following input values: 171, 173, 747, 905 and 007. Integers with either more or fewer than 3 digits should be rejected, and the user should be prompted to try again and enter exactly three digits

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!