Question: Beginner Java Palindromes A palindrome is a word or sentence that reads the same forwards as it does backwards. Letter case and punctuation are always
Palindromes A palindrome is a word or sentence that reads the same forwards as it does backwards. Letter case and punctuation are always ignored. Spaces are ignored in strict" ones. "ordinary" palindromes but not in racecar a word that is a palindrome a strict" palindrome (spaces Able was I, ere I saw Elba! count) attributed to Napoleon. A man, a plan, a canal: Panama! an"ordinary palindrome; spaces are ignored. 2445442 a palindromic number. There are lots of ways to see if a String is or is not a palindrome What would be a recursive algorithm to determine whether or not a String is a palindrome? Write a program that performs the following tasks: Display a friendly greeting to the user. Prompt the user for an input String. Accept that String. Determine whether or not that String is a palindrome by calling a recursive function. If so, classify the result as ordinary" or "strict." Display the result. The input String can contain any anything at all, but consider only alphanumeric characters (that is, strip out punctuation, and any special characters) and ignore letter case. Spaces are ignored in "ordinary" palindromes and considered in "strict" palindromes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
