A palindromic word is one that reads the same when reversed. For instance peep, deed and dad are palindromes. Create a class called Palindrome. In your Palindrome class, create a method called...



  1. A palindromic word is one that reads the same when reversed. For instance peep, deed and dad are palindromes.

  2. Create a class called Palindrome.

  3. In your Palindrome class, create a method called reverse() which takes a string argument and return the reverse of the argument as a string. For example, if the argument is
    rome


then your method should return
emor



  • Create a second method in Palindrome called isPalindrome() which takes a string argument and return true if the argument is a palindrome and false otherwise.



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here