|
Wyo Java Ch5Proj2 |
|
Copy and paste your Word class from Ch3Proj1 into your Ch05 folder. Then, add a predicate method named isPalindrome to the Word class. The isPalindrome method must accept a String parameter and must return a Boolean true if the parameter is a palindrome and a false if it is not a palindrome. This method's algorithm should work like the first part of Ch5Proj1. Write a WordTest class that simply allows the user to input two strings with exactly five letters to test the isPalindrome method. The test class must display the phrase "palindrome" or "not palindrome" depending on whether the inputed words are palindromes or not. Do not use loops in this program. Your program must follow the class Coding Standards. Save all of the files associated with this assignment to a folder named Ch5Proj1 in the appropriate network folder. Preconditions:
You must hand in the following on separate pages stapled in this specified order:
|