Program that creates a variable holding a positive integer


A palindrome is a number (or a text phrase) that reads the same backwards as forwards. For example, each of the following is a palindrome: 12321, 454, 11611.

Write a Java program that creates a variable holding a positive five-digit integer value (any arbitrary five-digit integer value). The program should determine and display whether the number in the variable is a palindrome.

[ hint: You can use integer division (modulus operator) to strip digits. For instance, 234%10 strips the right most digit, and 234/100 strips the left most digit from 234. ]

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Program that creates a variable holding a positive integer
Reference No:- TGS092267

Expected delivery within 24 Hours