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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!