public class PalindromeDriver { public static void main (String [] args) { Sentence mySentence; boolean result; String potentialPalindrome; potentialPalindrome = "Madam, I'm Adam"; mySentence = new Sentence (potentialPalindrome); result = mySentence.isPalindrome(); if (result) System.out.println (potentialPalindrome + " is a palindrome"); else System.out.println (potentialPalindrome + " is not a palindrome"); potentialPalindrome = "canoe"; mySentence = new Sentence (potentialPalindrome); result = mySentence.isPalindrome(); if (result) System.out.println (potentialPalindrome + " is a palindrome"); else System.out.println (potentialPalindrome + " is not a palindrome"); } // end main } // end class