Question: JAVA: Recursive Palindrome Main.java Overview A palindrome is a string that is the same forwards and backward, e.g., racecar mom A man, a plan, a
JAVA:
Recursive Palindrome
Main.java
Overview
A palindrome is a string that is the same forwards and backward, e.g.,
- racecar
- mom
- A man, a plan, a canal Panama.
Write a method public static boolean isPalindrome(String s) that will RECURSIVELY test a string to see if it's a palindrome.
Note that case, spaces, and punctuation (i.e., non-letters and non-digits) are ignored when determining palindrome-ness.
Sample I/O
Enter a string: racecar YEP, "racecar" is a palindrome.
Enter a string: racecars NOPE, "racecars" is NOT a palindrome.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
