Hi everyone, Im a newbie in java im having problem solving this java problem. Can anyone please help me?
A palindrome is a string which reads the same forward as it does backward, like ABCDCBA. You are to create a program that takes the string in input as input, determines if it is a palindrome, and displays a message stating that it is or is not a palindrome.
Some rules about palindromes:
1. Capitalization does not count; ABCba is a palindrome.
2. Spaces do not count. Ab cBa is a palindrome.
3. Punctuation does not count. A’bc;BA is a palindrome.
If input is the string “Madam I’m Adam”, your program should display:
“Madam I’m Adam” is a palindrome.
If input is the string “Madam I’m not Adam”, your program should display:
“Madam I’m not Adam” is not a palindrome.