Answer to Question #45225 in Java | JSP | JSF for Young

Question #45225
Palindrome Sentences

A palindromic sentence is a sentence that is spelt the same forwards as backwards, ignoring punctuation and case. For example, 'Madam, I'm Adam' is a palindromic sentence, as is 'Never odd or even'. 'Hello world' is not a palindromic sentence.

Extend your Palindromes class above to include the following method, which tests whether a given sentence is palindromic:

public static boolean isPalindromeSentence(String sentence) throws EmptyStackException, EmptyQueueException;


The methods Character.isAlphabetic() and Character.toLowerCase() could be useful here.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS