Create using Java
Description: Palindrome -- According towikipedia \"A palindrome is a word, phrase, numberor other sequence of units that can be read the same way in eitherdirection\"
Write a application that can determine if a 5 digit number youinput is a palindrome. If the number is a palindrome then print\"The number is a palindrome.\" If it is not then print \"The numberis NOT a palindrome\"
Make sure to use an array
- Allow input of any length integer (ie 12345654321 would bevalid input)
- Allow input of any number of any alphanumeric characters (ieabg345tghtriu8 would be valid input)
//-----------------------------------
// This is the good version pseudocode
//Â Â create string sInput
//
//Â Â prompt for input
//
//Â Â create char array (cArray) and assignsInput.toCharArray()
//
//Â Â loop to check for palindrome (set i = 0, j =sInput.length()-1, check to see if i != j; increment i, decrementj)
//Â Â Â Â Â check to see if current arrayvalues are !=
//Â Â Â Â Â Â Â Â print not apalindrome
//Â Â Â Â Â Â Â Â return
//Â Â Â Â Â end of loop
//Â Â print is a palindrome
//------------------------------