Question: 6. Palindromes. Write a JAVA program palindrome.java that keeps accepting strings from the user (until he types DONE) and prints true/false indicating whether the string

6. Palindromes. Write a JAVA program palindrome.java that keeps accepting strings from the user (until he types "DONE") and prints true/false indicating whether the string is a palindrome or not. A palindrome is a string that can be read the same way forward and backward. Your code must handle upper and lower case characters (eg, the string Madam is a palindrome). You are not allowed to generate a new string in your implementatio. Rather, you should walk through the string to determine if it is a palindrome or not. The strings may contain the empty space character. > Civic true racecar true madam true noon true DONE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
