Question: Java Program Palindrome *Please do add comments on the program as 1 A palingram is a phrase / sentence in which the letters or words
Java Program Palindrome
*Please do add comments on the program


as 1 A palingram is a phrase / sentence in which the letters or words read the same backward as they do forward. A phrase/sentence is a letter palingram if the sequence order of the letters (disregard the letter case) is the same when it reads backward it reads forward disregarding the spaces and punctuations. While the word palingram, the sequence order of the words in the phrase/ sentence (disregard the letter case of the letters) is the same when it reads backward as it reads forward disregarding the punctuations only. An example of letter palingram is "Able was I ere I saw Elba", purportedly spoken by Napoleon, referring to his first sighting of Elba, the island where the British exiled him. An example of word palingram is "He was, was he?". The sentence, "I did, did I?" is not only a word palingram but a letter palingram as well. the user is a Write a program will tell if the inputted phrase/sentence of palingram (letter and/or word) or not. Sample run: PALINGRAM IDENTIFIER >> Enter a phrase/ sentence: Able was I ere I saw Elba! -- A PALINGRAM (Letter Palingram) >> Enter 'Y' to try again: Y >> Enter a phrase sentence: He was, was he? -- A PALINGRAM (Word Palingram) >> Enter 'Y' to try again: Y >> Enter a phrase sentence: He was, was he? -- A PALINGRAM (Letter & Word Palingram) >> Enter 'Y' to try again: Y >> Enter a phrase sentence: Hello, how are you? -- NOT A PALINGRAM >> Enter 'Y' to try again: x Program Terminated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
