Write a java program which determines whether an input string is a palindrome or not. Your program
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a java program which determines whether an input string is a palindrome or not. Your program should take into account letters only and ignore nonalphabetic characters as well as consider letter case (uppercase or lowercase) immaterial in the determination. For example, the string "Madam, I'm Adam." will be considered a palindrome, even if its "reversed" form (which is ".madA m'l,madam") does not match exactly its original form. This is so since, if letter case and nonalphabetic characters are ignored, the string reduces to "MADAMIMADAM", which is the same read forwards and backwards.
Related Book For
Auditing A Practical Approach
ISBN: 9780730382645
4th Edition
Authors: Robyn Moroney, Fiona Campbell, Jane Hamilton
Posted Date: