A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward. Allowances may be made for adjustments to capital letters, punctuation, and word dividers. Famous examples include "A man, a plan, a canal, Panama!", "Amor, Roma", "race car", "taco cat", and "No 'x' in Nixon".
- Fork and clone down this repository.
- Run the program. You should see the following output:
there are 6 lines
test is NOT a palidrome.
rotator is NOT a palidrome.
rewriter is NOT a palidrome.
nurses run is NOT a palidrome.
Madam, I'm Adam! is NOT a palidrome.
A Man! A Plan! A Canal! Panama! is NOT a palidrome. - Start by finishing the
reverse()
andpalindrome()
methods. You'll want the program to print that"rotator"
is a palindrome and"test"
and"rewriter"
are NOT palindromes. You may find the custom codingbat problems reverse and isPalindrome helpful. - Once you get the program working correctly for
"rotator"
,"test"
and"rewriter"
, you'll need to devise a strategy for working with spaces and capital letters. You may find one or more of these custom codingbat problems helpful: noCapitals, noSpaces, numLetters, and onlyLetters. - Submit the URL of your GitHub repository to Google Classroom.