Driver program to test sentencePallindrome ( )
public static void main ( String [ ] args ) { String str = " Too ▁ hot ▁ to ▁ hoot . " ; if ( sentencePalindrome ( str ) ) System . out . println ( " Sentence ▁ is ▁ palindrome " ) ; else System . out . println ( " Sentence ▁ is ▁ not " + " ▁ " + " palindrome " ) ; } }