Computers and Technology

Write a method called printpalindrome that accepts a scanner for the console as a parameter, and prompts the user to enter one or more words and prints whether the entered string is a palindrome (i. e., reads the same forwards as it does backwards, like "abba" or "racecar"). if the following scanner object were declared: scanner console = new scanner(system. in); printpalindrome(console); the resulting output for a call where the user types a palindrome would be: type one or more words: racecar racecar is a palindrome! the output for a call where the user types a word that is not a palindrome would be: type one or more words: hello hello is not a palindrome.

answer
Answers: 1

Similar questions

Do you know the correct answer?
Write a method called printpalindrome that accepts a scanner for the console as a parameter, and pro...

Questions in other subjects:

Konu
Biology, 12.02.2021 19:50
Konu
Computers and Technology, 12.02.2021 19:50