Write a method called printPalindrome that accepts a Scanner for the console as a parameter, prompts the

Question:

Write a method called printPalindrome that accepts a Scanner for the console as a parameter, prompts the user to enter one or more words, and prints whether the entered String is a palindrome (i.e., reads the same forward as it does backward, like "abba" or "racecar ") .
For an added challenge, make the code case-insensitive, so that words like “Abba” and “Madam” will be considered palindromes.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: